be more strict - fixes 14ce11c778

This commit is contained in:
Ian 2014-05-25 11:46:35 +02:00
parent 27265c533e
commit 3c21bfb9f4

View File

@ -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();