Commit 3fdda559 authored by Jono Mingard's avatar Jono Mingard
Browse files

Use global $CFG in get_configs_user_institutions() (Bug #1264429)



The get_configs_user_institutions() method used the global $CFG variable
without declaring it, causing warnings when trying to set a property of it

Change-Id: Id02edcf735ffc3c8a779dc787715a6ba20626af1
Signed-off-by: default avatarJono Mingard <jonom@catalyst.net.nz>
parent 584de240
......@@ -1102,7 +1102,7 @@ function get_config_institution($institutionname, $key) {
* supplied by load_user_institutions(). Array key is institution name.
*/
function get_configs_user_institutions($key, $userid = null) {
global $USER;
global $USER, $CFG;
if ($userid === null) {
$userid = $USER->id;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment