Skip to content

Commit

Permalink
Fixes array_search comparison.
Browse files Browse the repository at this point in the history
See http://php.net/manual/en/function.array-search.php for details why this is required.
  • Loading branch information
davidgiga1993 committed Oct 5, 2016
1 parent 192cb0b commit 8f120a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion type/Base.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function rrd_options() {
$rrdgraph[] = '--base';
$rrdgraph[] = $this->base;
}
if (!array_search('-l', $rrdgraph)) {
if (array_search('-l', $rrdgraph) === false) {
$rrdgraph[] = '-l';
$rrdgraph[] = '0';
}
Expand Down

0 comments on commit 8f120a8

Please sign in to comment.