error_get_last() ? What's that?

This commit is contained in:
moodler 2007-03-31 02:30:56 +00:00
parent 376c9c70e9
commit d176958817

View File

@ -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;
}