Merged from MOODLE_15_STABLE: Pulling in a missing global CFG in datalib:execute_sql (affects CFG->dblogerror)

This commit is contained in:
mjollnir_
2005-11-17 02:27:05 +00:00
parent 41238653e1
commit 1b4fe47b08
+1 -1
View File
@@ -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;