Fix: Do not throw error when entry got deleted, go to 404 page

This commit is contained in:
onli 2019-02-16 14:46:46 +01:00
parent ba9c401697
commit 153b5a37f1

View File

@ -1014,6 +1014,9 @@ function serendipity_getTotalEntries() {
$querystring = "SELECT count(distinct e.id) {$serendipity['fullCountQuery']}";
}
if ($serendipity['fullCountQuery'] == '') {
return 0;
}
$query =& serendipity_db_query($querystring);
if (is_array($query) && isset($query[0])) {