fix query in empty array

This commit is contained in:
yuri
2015-03-17 11:39:47 +02:00
parent 469c6f3b45
commit fa9c0e5b3b
+4 -1
View File
@@ -621,8 +621,11 @@ abstract class Base
$oppose = 'NOT';
}
if (!empty($valArr)) {
$whereParts[] = $leftPart . " {$oppose} IN " . "(" . implode(',', $valArr) . ")";
$whereParts[] = $leftPart . " {$oppose} IN " . "(" . implode(',', $valArr) . ")";
} else {
$whereParts[] = " 0";
}
}
}
} else {