mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
error_get_last() ? What's that?
This commit is contained in:
parent
376c9c70e9
commit
d176958817
@ -5009,7 +5009,7 @@ function redirect($url, $message='', $delay=-1, $adminroot = '') {
|
||||
|
||||
/// At developer debug level. Don't redirect if errors have been printed on screen.
|
||||
$errorprinted = false;
|
||||
if (debugging('', DEBUG_DEVELOPER) && $CFG->debugdisplay && error_get_last()) {
|
||||
if (debugging('', DEBUG_DEVELOPER) && $CFG->debugdisplay /* && error_get_last()*/) {
|
||||
$errorprinted = true;
|
||||
$message = "<strong>Error output, so disabling automatic redirect.</strong></p><p>" . $message;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user