diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-14 22:55:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-14 22:55:07 +0000 |
commit | 471bdc1422195bc99af87e8910ff8ac35f65b1d7 (patch) | |
tree | eb67bcd2d62860d6415dd4682f202c16fac9bfa2 /etc | |
parent | 5f7e7fdf2cd22e942f99e9c70db0f1bcef6e4976 (diff) | |
download | pfsense-471bdc1422195bc99af87e8910ff8ac35f65b1d7.zip pfsense-471bdc1422195bc99af87e8910ff8ac35f65b1d7.tar.gz |
Handle 0's a little more gracefully to avoid:
php: : RRD restore failed exited with 0, the error is:
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f71bdcb..1b2fef3 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1957,7 +1957,7 @@ function enable_rrd_graphing() /* we now have something to write "on", restore the databases if we have them */ if(file_exists("{$g['cf_conf_path']}/rrd.tgz")) { exec("cd /;/usr/bin/tar -xzf {$g['cf_conf_path']}/rrd.tgz", $rrdrestore, $rrdreturn); - if($rrdrestore != 0) { + if((int)$rrdrestore <> 0) { log_error("RRD restore failed exited with $rrdreturn, the error is: $rrdrestore[0]\n"); } @@ -2282,4 +2282,4 @@ function is_dhcp_server_enabled() { return $dhcpdenable; } -?> +?>
\ No newline at end of file |