functions.inc.php: fix SQL syntax error (postgreSQL), issue #743
This commit is contained in:
parent
bd3a9ec832
commit
cb4530f83c
@ -363,7 +363,7 @@ function serendipity_walkRecursive($ary, $child_name = 'id', $parent_name = 'par
|
|||||||
function serendipity_fetchUsers($user = '', $group = null, $is_count = false) {
|
function serendipity_fetchUsers($user = '', $group = null, $is_count = false) {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
$where = 'WHERE 1';
|
$where = 'WHERE 1=1';
|
||||||
if (!empty($user)) {
|
if (!empty($user)) {
|
||||||
$where .= " AND a.authorid = '" . (int)$user ."'";
|
$where .= " AND a.authorid = '" . (int)$user ."'";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user