Additional 7.4 compatibility fixes.
[fa-stable.git] / includes / ui / ui_lists.inc
index 55ef6777d5d004a40c4fbcfa8c82cadde687713c..417d6032f4185190797cd0e08423b1b2d42692cc 100644 (file)
@@ -158,7 +158,7 @@ $opts = array(              // default options
        // sql completion
        if (count($opts['where'])) {
                $where = strpos($sql, 'WHERE')==false ? ' WHERE ':' AND ';
-               $where .= '('. implode($opts['where'], ' AND ') . ')';
+               $where .= '('. implode(' AND ', $opts['where']) . ')';
                $group_pos = strpos($sql, 'GROUP BY');
                if ($group_pos) {
                        $group = substr($sql, $group_pos);