From bf8b3d21ba4acff45a3a5391b62b3f8495228404 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 31 Mar 2007 02:34:06 +0000 Subject: [PATCH] Making redirects work again --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 4c4ed29744..d88dec5258 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 && false /* && error_get_last()*/) { $errorprinted = true; $message = "Error output, so disabling automatic redirect.

" . $message; } -- 2.39.5