diff options
author | Pim van den Berg | 2012-12-21 19:08:57 +0100 |
---|---|---|
committer | Pim van den Berg | 2012-12-21 19:08:57 +0100 |
commit | f30bbf8be225743711d7b161b59b8fb0c310ab22 (patch) | |
tree | 917c65604a1c9fe13573728f6b13922da46b0f68 /type/Default.class.php | |
parent | plugin/mysql: add support for cache_result, cache_size, threads, total_threads (diff) | |
download | apt-panopticon_cgp-f30bbf8be225743711d7b161b59b8fb0c310ab22.zip apt-panopticon_cgp-f30bbf8be225743711d7b161b59b8fb0c310ab22.tar.gz apt-panopticon_cgp-f30bbf8be225743711d7b161b59b8fb0c310ab22.tar.bz2 apt-panopticon_cgp-f30bbf8be225743711d7b161b59b8fb0c310ab22.tar.xz |
type: resolve undefined variable $c and $raw notices
Reported-by: Philipp Hellmich <Philipp.Hellmich@Bertelsmann.de>
Diffstat (limited to 'type/Default.class.php')
-rw-r--r-- | type/Default.class.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/type/Default.class.php b/type/Default.class.php index 13e45c9..26189c7 100644 --- a/type/Default.class.php +++ b/type/Default.class.php | |||
@@ -35,6 +35,7 @@ class Type_Default { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | function rainbow_colors() { | 37 | function rainbow_colors() { |
38 | $c = 0; | ||
38 | $sources = count($this->rrd_get_sources()); | 39 | $sources = count($this->rrd_get_sources()); |
39 | foreach ($this->rrd_get_sources() as $ds) { | 40 | foreach ($this->rrd_get_sources() as $ds) { |
40 | # hue (saturnation=1, value=1) | 41 | # hue (saturnation=1, value=1) |