Fix draft check.

Fixes s9y/Serendipity#696.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2020-04-18 23:07:32 +02:00
parent 8c11320820
commit a6d340cdf2
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
1.20:
-----
* Fix draft check.
1.19:
-----
* re-add unsigned

View file

@ -19,7 +19,7 @@ class serendipity_event_trackback extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_MTRACKBACK_TITLEDESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Malte Paskuda, Ian');
$propbag->add('version', '1.19');
$propbag->add('version', '1.20');
$propbag->add('requirements', array(
'serendipity' => '1.6',
'smarty' => '2.6.7',
@ -204,7 +204,7 @@ class serendipity_event_trackback extends serendipity_event
case 'backend_save':
case 'backend_publish':
if (!serendipity_db_bool($entry['isdraft'])
if (!serendipity_db_bool($eventData['isdraft'])
&&
$eventData['timestamp'] >= serendipity_serverOffsetHour()
&&