From 14ce11c778cdbaafc25a3a3b34687cdf8e5bcce9 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 23 May 2014 17:11:05 +0200 Subject: [PATCH] set entries update isdraft to string value false to be able to publish draft entries from dashboard References #160 --- include/functions_entries.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 6b11f1a1..80dceb36 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -1402,6 +1402,8 @@ function serendipity_updertEntry($entry) { } } + if (!$entry['isdraft'] || $entry['isdraft'] == 0) $entry['isdraft'] = 'false'; + //if (!serendipity_db_bool($entry['isdraft']) && !serendipity_db_bool($_entry['isdraft'])) { $entry['last_modified'] = time(); //}