Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31360 use extra param in get_in_or_equal - one less line of code...

  • Loading branch information...
commit 2be99ddee8ad423a4b89d0bb7ce8616b2fc4a5fe 1 parent d14c00e
@danmarsden danmarsden authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/accesslib.php
View
7 lib/accesslib.php
@@ -6391,10 +6391,9 @@ public function get_capabilities() {
$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 *
Please sign in to comment.
Something went wrong with that request. Please try again.