be more strict - fixes 14ce11c778
This commit is contained in:
parent
27265c533e
commit
3c21bfb9f4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user