Permalink
Browse files

Fix setup script

  • Loading branch information...
1 parent dce415e commit 7ec10a53c751005b7dd68fb06f3f0e44238e10ea Cyril Feraudet committed Oct 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 setup.php
View
@@ -51,7 +51,7 @@ function printoo($txt) { return "<font color='orange'>$txt</font>"; }
echo "<li>".(file_exists($rrdcached) ? printok ($ok) : printko ($ko))."</li>";
}
-if (isset($rrdtool) && file_exists($rrdtool)) {
+if (isset($rrdtool) && file_exists($rrdtool) && in_array('--border', $rrdtool_options)) {
$cmd = "$rrdtool graph --border 1 2>&1";
$res = trim(`$cmd`);
if (substr($res, 0, 21) == 'ERROR: unknown option') {

0 comments on commit 7ec10a5

Please sign in to comment.