1
0

Fix possible temporary caching errors failing $eventData[0]['properties']

This commit is contained in:
Ian
2013-10-01 19:03:12 +02:00
parent 0b1aeddc31
commit 915c5f6531
2 changed files with 3 additions and 1 deletions

View File

@ -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) * Automatic upgrade removal of old Smarty2 files (2.0-alpha2)
function uses SPL function uses SPL

View File

@ -1622,7 +1622,7 @@ class serendipity_event extends serendipity_plugin
// $entries input data. This is a unifying function because // $entries input data. This is a unifying function because
// several plugins are using similar fields. // 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])) { if (!empty($eventData[0]['properties']['ep_cache_' . $fieldname])) {
// It may happen that there is no extended entry to concatenate to. In that case, // It may happen that there is no extended entry to concatenate to. In that case,