Skip to content

Commit

Permalink
be more strict - fixes 14ce11c
Browse files Browse the repository at this point in the history
  • Loading branch information
ophian committed May 25, 2014
1 parent 27265c5 commit 3c21bfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/functions_entries.inc.php
Expand Up @@ -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();
Expand Down

1 comment on commit 3c21bfb

@bauigel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one seems to work better.

Change draft/published/draft from editor: Works.
Publish from dashboard: Works.

Please sign in to comment.