diff options
Diffstat (limited to 'type/Base.class.php')
-rw-r--r-- | type/Base.class.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/type/Base.class.php b/type/Base.class.php index ff9a235..1f42f4f 100644 --- a/type/Base.class.php +++ b/type/Base.class.php | |||
@@ -155,6 +155,10 @@ class Type_Base { | |||
155 | function rrd_files() { | 155 | function rrd_files() { |
156 | $files = $this->get_filenames(); | 156 | $files = $this->get_filenames(); |
157 | 157 | ||
158 | $this->tinstances = array(); | ||
159 | $this->files = array(); | ||
160 | $this->identifiers = array(); | ||
161 | |||
158 | foreach($files as $filename) { | 162 | foreach($files as $filename) { |
159 | $basename=basename($filename,'.rrd'); | 163 | $basename=basename($filename,'.rrd'); |
160 | $instance = strpos($basename,'-') | 164 | $instance = strpos($basename,'-') |
@@ -186,7 +190,7 @@ class Type_Base { | |||
186 | 190 | ||
187 | $files = glob($this->datadir .'/'. $identifier . $wildcard . 'rrd'); | 191 | $files = glob($this->datadir .'/'. $identifier . $wildcard . 'rrd'); |
188 | 192 | ||
189 | return $files; | 193 | return $files ? $files : array(); |
190 | } | 194 | } |
191 | 195 | ||
192 | function rrd_graph($debug = false) { | 196 | function rrd_graph($debug = false) { |