Added specific is_array($eventData) chack, thanks to greman
This commit is contained in:
parent
a09efbf290
commit
959d80ba4a
|
@ -1,3 +1,8 @@
|
|||
3.39:
|
||||
----
|
||||
|
||||
Added specific is_array($eventData) chack, thanks to gregman
|
||||
|
||||
3.38:
|
||||
-----
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ class serendipity_event_freetag extends serendipity_event
|
|||
'smarty' => '2.6.7',
|
||||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('version', '3.38');
|
||||
$propbag->add('version', '3.39');
|
||||
$propbag->add('event_hooks', array(
|
||||
'frontend_fetchentries' => true,
|
||||
'frontend_fetchentry' => true,
|
||||
|
@ -1219,6 +1219,8 @@ class serendipity_event_freetag extends serendipity_event
|
|||
# $entry: number of entry in $eventData
|
||||
# for use in displayEntry
|
||||
function addTags($entry, $tags, $eventData) {
|
||||
if (!is_array($eventData)) $eventData = array();
|
||||
|
||||
if ($this->get_config('extended_smarty', false)) {
|
||||
$eventData[$entry]['freetag']['extended'] = true;
|
||||
$eventData[$entry]['freetag']['tags']['description'] = str_replace('%s', '', PLUGIN_EVENT_FREETAG_LIST);
|
||||
|
|
|
@ -29,7 +29,7 @@ class serendipity_event_outdate_entries extends serendipity_event {
|
|||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
|
||||
$propbag->add('version', '1.5');
|
||||
$propbag->add('version', '1.6');
|
||||
$propbag->add('stackable', false);
|
||||
$this->dependencies = array('serendipity_event_entryproperties' => 'keep');
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ class serendipity_event_outdate_entries extends serendipity_event {
|
|||
WHERE e.isdraft = 'false'
|
||||
AND ep.property = 'ep_" . $timeout_custom . "'
|
||||
AND ep.value != ''
|
||||
AND ep.value < " . time();
|
||||
AND UNIX_TIMESTAMP(ep.value) < " . time();
|
||||
|
||||
$rows = serendipity_db_query($sql);
|
||||
if (is_array($rows)) {
|
||||
|
|
Loading…
Reference in a new issue