From f30bbf8be225743711d7b161b59b8fb0c310ab22 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 21 Dec 2012 19:08:57 +0100 Subject: type: resolve undefined variable $c and $raw notices Reported-by: Philipp Hellmich --- type/GenericStacked.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'type/GenericStacked.class.php') diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php index a0ae4c5..7c65ddd 100644 --- a/type/GenericStacked.class.php +++ b/type/GenericStacked.class.php @@ -9,11 +9,9 @@ class Type_GenericStacked extends Type_Default { $sources = $this->rrd_get_sources(); + $raw = null; if ($this->scale) $raw = '_raw'; - else - $raw = null; - $i=0; foreach ($this->tinstances as $tinstance) { foreach ($this->data_sources as $ds) { -- cgit v1.1