-
Bug
-
Resolution: Fixed
-
Blocker
-
3.6
-
MOODLE_36_STABLE
-
MOODLE_36_STABLE
-
MDL-63968-master -
- Tested by CI
list ($insql, $inparams) = $DB->get_in_or_equal($favouriteconversationids, SQL_PARAMS_NAMED, 'favouriteids');
|
$favouritesql = $favourites ? " AND mc.id {$insql} " : " AND mc.id NOT {$insql} ";
|
You should not use the "NOT" - please use the extra argument to get_in_or_equal.
The get_in_or_equal function will return "= ?" or "<> ?" if there is only one array key. Your SQL will then become:
AND mc.id NOT = ?
|
- Discovered while testing
-
MDL-63850 Extend member info with additional fields
- Closed