Skip to content

Commit 5923947

Browse files
committed
graph : removed empty series
1 parent 181605f commit 5923947

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ function getLogData(){
183183
$file->seek(max($file->key() - self::MAX_LOG_DATA, 0));
184184
while (!$file->eof()) {
185185
list($date, $time, $junk, $junk, $service) = $file->fgetcsv(' ');
186+
if (!isset($service)) continue;
186187
if (!isset($data[$service])) $data[$service] = array('name' => $service, 'visible' => false);
187188
$data[$service]['data'][] = array(strtotime(ltrim($date, '[') . ' ' . substr($time,0,5))*1000, 1);
188189
}

0 commit comments

Comments
 (0)