From cd575dd5f45ddaa0871b31c36c46c675b484196f Mon Sep 17 00:00:00 2001 From: Matthias Viehweger Date: Sat, 20 Oct 2012 00:44:28 +0200 Subject: explicitely defined undefined variables this should keep the error.log clean --- type/Default.class.php | 3 +++ type/GenericStacked.class.php | 3 +++ 2 files changed, 6 insertions(+) (limited to 'type') diff --git a/type/Default.class.php b/type/Default.class.php index 00ef0e4..0b6601e 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -243,6 +243,9 @@ class Type_Default { if ($this->scale) $raw = '_raw'; + else + $raw = null; + $i=0; foreach ($this->tinstances as $tinstance) { foreach ($this->data_sources as $ds) { diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php index d1da9ec..f306532 100644 --- a/type/GenericStacked.class.php +++ b/type/GenericStacked.class.php @@ -11,6 +11,9 @@ class Type_GenericStacked extends Type_Default { if ($this->scale) $raw = '_raw'; + else + $raw = null; + $i=0; foreach ($this->tinstances as $tinstance) { foreach ($this->data_sources as $ds) { -- cgit v1.1