MDL-34159 - add comment lost from previous commit

This commit is contained in:
Dan Poltawski
2012-07-10 12:58:46 +08:00
parent 57c7815213
commit b2e5a60773
+1 -1
View File
@@ -575,7 +575,7 @@ abstract class moodle_database {
*/
protected function where_clause_list($field, array $values) {
if (empty($values)) {
return array("1 = 2", array());
return array("1 = 2", array()); // Fake condition, won't return rows ever. MDL-17645
}
// Note: Do not use get_in_or_equal() because it can not deal with bools and nulls.