Merged from MOODLE_15_STABLE: Pulling in a missing global CFG in datalib:execute_sql (affects CFG->dblogerror)
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ if ($SITE = get_site()) {
|
||||
function execute_sql($command, $feedback=true) {
|
||||
/// Completely general function - it just runs some SQL and reports success.
|
||||
|
||||
global $db;
|
||||
global $db, $CFG;
|
||||
|
||||
$olddebug = $db->debug;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user