Permalink
Browse files

MDL-34159 - add comment lost from previous commit

  • Loading branch information...
danpoltawski committed Jul 10, 2012
1 parent 4afbd0c commit f5d7fe4c9eddebf2e581ef30229c61e2a0c8ece7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dml/moodle_database.php
@@ -575,7 +575,7 @@ protected function where_clause($table, array $conditions=null) {
*/
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.

0 comments on commit f5d7fe4

Please sign in to comment.