From 153b5a37f1a9350817bb76009eddd358e7db36ec Mon Sep 17 00:00:00 2001 From: onli Date: Sat, 16 Feb 2019 14:46:46 +0100 Subject: [PATCH] Fix: Do not throw error when entry got deleted, go to 404 page --- include/functions_entries.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index baffc4bf..fb73d66b 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -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])) {