functions.inc.php: fix SQL syntax error (postgreSQL), issue #743

This commit is contained in:
Stephan Brunker 2020-08-24 09:24:26 +02:00
parent bd3a9ec832
commit cb4530f83c

View File

@ -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 ."'";
}