mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
fixed typo in last commit - undefined $sql
This commit is contained in:
parent
325898c61e
commit
78fa15afc1
@ -100,7 +100,7 @@ function execute_sql($command, $feedback=true) {
|
||||
notify('<strong>' . get_string('error') . '</strong>');
|
||||
}
|
||||
// these two may go to difference places
|
||||
debugging($db->ErrorMsg() .'<br /><br />'. $sql);
|
||||
debugging($db->ErrorMsg() .'<br /><br />'. $command);
|
||||
if (!empty($CFG->dblogerror)) {
|
||||
$debug=array_shift(debug_backtrace());
|
||||
error_log("SQL ".$db->ErrorMsg()." in {$debug['file']} on line {$debug['line']}. STATEMENT: $command");
|
||||
|
Loading…
x
Reference in New Issue
Block a user