MDL-23927 ensure CFG in scope before using, credit goes to Myles Carrick

This commit is contained in:
Petr Skoda
2010-09-01 07:32:21 +00:00
parent 4153e01aeb
commit c30bcaae3f
+1 -1
View File
@@ -7,7 +7,7 @@ if (!defined('MAX_BULK_USERS')) {
}
function add_selection_all($ufiltering) {
global $SESSION, $DB;
global $SESSION, $DB, $CFG;
list($sqlwhere, $params) = $ufiltering->get_sql_filter("id<>:exguest AND deleted <> 1", array('exguest'=>$CFG->siteguest));