From 633b21afce66bd8ea1f0a3345173f2a6c33b9389 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 26 May 2005 21:24:02 +0000 Subject: [PATCH] some minor corrections; make this first rrd test really work --- include/classes/rrdstat.php-class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index bc41408..0cc03ef 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -286,7 +286,7 @@ class rrdstat { function update($upArray = null) { // feed new data into RRD - if ($this->status != 'ok') { trigger_error('Cannot update non-writeable file', E_USER_WARNING); return 1; } + if ($this->status != 'ok') { trigger_error('Cannot update non-writeable file', E_USER_WARNING); return false; } $upvals = array(); if (isset($this->config_raw['update'])) { if (preg_match('/^\s*function\s+{(.*)}\s*$/is', $this->config_raw['update'], $regs)) { @@ -366,7 +366,7 @@ class rrdstat { $success = false; } else { $success = true; } - return ($return_var == 0); + return $success; } function fetch($cf = 'AVERAGE', $resolution = null, $start = null, $end = null) { -- 2.43.0