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:
@@ -1072,9 +1072,11 @@ 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) {
|
||||
if (isset($eventData[$key]['id'])) {
|
||||
$entries[$key] = (int)$eventData[$key]['id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fetch votes for all entry IDs. Store them in an array for later usage.
|
||||
$q = 'SELECT k.entryid, SUM(votes) AS votes, SUM(points) AS points, SUM(visits) AS visits
|
||||
|
||||
Reference in New Issue
Block a user