Fix: Do not throw error when entry got deleted, go to 404 page
This commit is contained in:
parent
ba9c401697
commit
153b5a37f1
@ -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])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user