From 5d6abe552862aeb949307356e2d9d86548f72b9c Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 25 Oct 2005 09:50:43 +0000 Subject: [PATCH] fix array casting, thanks to falk --- .../serendipity_event_entryproperties.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php b/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php index 954fa50..95f37f5 100644 --- a/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php +++ b/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php @@ -429,10 +429,12 @@ class serendipity_event_entryproperties extends serendipity_event $total = serendipity_getTotalEntries(); printf(PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_TOTAL . '
', $total); - foreach($entries AS $idx => $entry) { - printf(PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_BUILDING . '
', $entry['id'], htmlspecialchars($entry['title'])); - $this->updateCache($entry); - echo PLUGIN_EVENT_ENTRYPROPERTIES_CACHED . '

'; + if (is_array($entries)) { + foreach($entries AS $idx => $entry) { + printf(PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_BUILDING . '
', $entry['id'], htmlspecialchars($entry['title'])); + $this->updateCache($entry); + echo PLUGIN_EVENT_ENTRYPROPERTIES_CACHED . '

'; + } } echo '
'; -- 2.39.5