diff options
| author | david | 2016-10-05 17:39:20 +0200 |
|---|---|---|
| committer | david | 2016-10-05 17:39:20 +0200 |
| commit | 8f120a886720ebab7b4cf938d02d7d931b68e935 (patch) | |
| tree | 2736611a054077278c8da17b5b781d0ced234026 | |
| parent | Merge pull request #127 from mnellemann/master (diff) | |
| download | apt-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.
| -rw-r--r-- | type/Base.class.php | 2 |
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 | } |
