Don't try to put karma bars on pages that aren't entries!
Avoids problem with scalar used as array reported by Don
This commit is contained in:
parent
0a88e1f307
commit
9854f18fec
@ -1072,7 +1072,9 @@ END_IMG_CSS;
|
||||
} elseif (!serendipity_db_bool($this->get_config('extended_only', false))) {
|
||||
// We're in overview mode, and we want rating bars for all the entry IDs
|
||||
foreach(array_keys($eventData) as $key) {
|
||||
$entries[$key] = (int)$eventData[$key]['id'];
|
||||
if (isset($eventData[$key]['id'])) {
|
||||
$entries[$key] = (int)$eventData[$key]['id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user