aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
authordavid2016-10-05 17:39:20 +0200
committerdavid2016-10-05 17:39:20 +0200
commit8f120a886720ebab7b4cf938d02d7d931b68e935 (patch)
tree2736611a054077278c8da17b5b781d0ced234026 /type
parentMerge pull request #127 from mnellemann/master (diff)
downloadapt-panopticon_cgp-8f120a886720ebab7b4cf938d02d7d931b68e935.zip
apt-panopticon_cgp-8f120a886720ebab7b4cf938d02d7d931b68e935.tar.gz
apt-panopticon_cgp-8f120a886720ebab7b4cf938d02d7d931b68e935.tar.bz2
apt-panopticon_cgp-8f120a886720ebab7b4cf938d02d7d931b68e935.tar.xz
Fixes array_search comparison.
See http://php.net/manual/en/function.array-search.php for details why this is required.
Diffstat (limited to 'type')
-rw-r--r--type/Base.class.php2
1 files changed, 1 insertions, 1 deletions
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 {
285 $rrdgraph[] = '--base'; 285 $rrdgraph[] = '--base';
286 $rrdgraph[] = $this->base; 286 $rrdgraph[] = $this->base;
287 } 287 }
288 if (!array_search('-l', $rrdgraph)) { 288 if (array_search('-l', $rrdgraph) === false) {
289 $rrdgraph[] = '-l'; 289 $rrdgraph[] = '-l';
290 $rrdgraph[] = '0'; 290 $rrdgraph[] = '0';
291 } 291 }