From: garvinhicking <garvinhicking> Date: Tue, 25 Oct 2005 09:50:43 +0000 (+0000) Subject: fix array casting, thanks to falk X-Git-Tag: 0.9~25 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5d6abe552862aeb949307356e2d9d86548f72b9c;p=s9y.git fix array casting, thanks to falk --- 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 . '<br />', $total); - foreach($entries AS $idx => $entry) { - printf(PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_BUILDING . '<br />', $entry['id'], htmlspecialchars($entry['title'])); - $this->updateCache($entry); - echo PLUGIN_EVENT_ENTRYPROPERTIES_CACHED . '<br /><br />'; + if (is_array($entries)) { + foreach($entries AS $idx => $entry) { + printf(PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_BUILDING . '<br />', $entry['id'], htmlspecialchars($entry['title'])); + $this->updateCache($entry); + echo PLUGIN_EVENT_ENTRYPROPERTIES_CACHED . '<br /><br />'; + } } echo '<br />';