From 8f120a886720ebab7b4cf938d02d7d931b68e935 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 5 Oct 2016 17:39:20 +0200 Subject: Fixes array_search comparison. See http://php.net/manual/en/function.array-search.php for details why this is required. --- type/Base.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type/Base.class.php b/type/Base.class.php index 4b23eaf..70b95b5 100644 --- a/type/Base.class.php +++ b/type/Base.class.php @@ -285,7 +285,7 @@ class Type_Base { $rrdgraph[] = '--base'; $rrdgraph[] = $this->base; } - if (!array_search('-l', $rrdgraph)) { + if (array_search('-l', $rrdgraph) === false) { $rrdgraph[] = '-l'; $rrdgraph[] = '0'; } -- cgit v1.1