mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-31360 use extra param in get_in_or_equal - one less line of code...
This commit is contained in:
parent
d14c00e239
commit
2be99ddee8
@ -6391,10 +6391,9 @@ class context_module extends context {
|
||||
|
||||
$extracaps = array_merge($subcaps, $extracaps);
|
||||
$extra = '';
|
||||
$params = array();
|
||||
if (!empty($extracaps)) {
|
||||
list($extra, $params) = $DB->get_in_or_equal(
|
||||
$extracaps, SQL_PARAMS_NAMED, 'cap0');
|
||||
list($extra, $params) = $DB->get_in_or_equal(
|
||||
$extracaps, SQL_PARAMS_NAMED, 'cap0', true, '');
|
||||
if (!empty($extra)) {
|
||||
$extra = "OR name $extra";
|
||||
}
|
||||
$sql = "SELECT *
|
||||
|
Loading…
x
Reference in New Issue
Block a user