From 915c5f65315263b3b538714fb5b41a3a29060fb1 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 1 Oct 2013 19:03:12 +0200 Subject: [PATCH] Fix possible temporary caching errors failing $eventData[0]['properties'] --- docs/NEWS | 2 ++ include/plugin_api.inc.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index 152809a3..5a4b4244 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -4,6 +4,8 @@ Version 2.0 () ------------------------------------------------------------------------ + * Fix possible temporary caching errors failing $eventData[0]['properties'] + * Automatic upgrade removal of old Smarty2 files (2.0-alpha2) function uses SPL diff --git a/include/plugin_api.inc.php b/include/plugin_api.inc.php index bd146674..4c8667e5 100644 --- a/include/plugin_api.inc.php +++ b/include/plugin_api.inc.php @@ -1622,7 +1622,7 @@ class serendipity_event extends serendipity_plugin // $entries input data. This is a unifying function because // several plugins are using similar fields. - if (is_array($eventData) && isset($eventData[0]) && is_array($eventData[0]['properties'])) { + if (is_array($eventData) && isset($eventData[0]) && is_array($eventData[0]) && is_array($eventData[0]['properties'])) { if (!empty($eventData[0]['properties']['ep_cache_' . $fieldname])) { // It may happen that there is no extended entry to concatenate to. In that case,