From 3c21bfb9f4d4eecbdf4a8220684bf1928340f19a Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 25 May 2014 11:46:35 +0200 Subject: [PATCH] be more strict - fixes 14ce11c778 --- include/functions_entries.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 80dceb36..affc07b2 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -1402,7 +1402,9 @@ function serendipity_updertEntry($entry) { } } - if (!$entry['isdraft'] || $entry['isdraft'] == 0) $entry['isdraft'] = 'false'; + if ($entry['isdraft'] === 0) { + $entry['isdraft'] = 'false'; // make sure to commit a string value with dashboards entry publish (only!) + } //if (!serendipity_db_bool($entry['isdraft']) && !serendipity_db_bool($_entry['isdraft'])) { $entry['last_modified'] = time();