From cb4530f83cdcf38283ed799a8d5f063c0244aeff Mon Sep 17 00:00:00 2001 From: Stephan Brunker Date: Mon, 24 Aug 2020 09:24:26 +0200 Subject: [PATCH] functions.inc.php: fix SQL syntax error (postgreSQL), issue #743 --- include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index 294af9f3..4a2c203a 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -363,7 +363,7 @@ function serendipity_walkRecursive($ary, $child_name = 'id', $parent_name = 'par function serendipity_fetchUsers($user = '', $group = null, $is_count = false) { global $serendipity; - $where = 'WHERE 1'; + $where = 'WHERE 1=1'; if (!empty($user)) { $where .= " AND a.authorid = '" . (int)$user ."'"; }