]> git.mjollnir.org Git - moodle.git/commitdiff
error_get_last() ? What's that?
authormoodler <moodler>
Sat, 31 Mar 2007 02:30:56 +0000 (02:30 +0000)
committermoodler <moodler>
Sat, 31 Mar 2007 02:30:56 +0000 (02:30 +0000)
lib/weblib.php

index c59dc3d9cdf762348a359460d8338d27241ac99b..4c4ed297447d05c356d0977039e4a5602d9c5f4b 100644 (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;
     }