From: moodler
Date: Sat, 31 Mar 2007 02:30:56 +0000 (+0000)
Subject: error_get_last() ? What's that?
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d1769588174c0dcd0fbbb3cebb769c27a117eb7e;p=moodle.git
error_get_last() ? What's that?
---
diff --git a/lib/weblib.php b/lib/weblib.php
index c59dc3d9cd..4c4ed29744 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 /* && error_get_last()*/) {
$errorprinted = true;
$message = "Error output, so disabling automatic redirect.
" . $message;
}