From: moodler Date: Mon, 10 Apr 2006 16:00:34 +0000 (+0000) Subject: Added a notify in debugging mode for a double print_header() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e575c0597de25ad667e25971386804d39cfd46a7;p=moodle.git Added a notify in debugging mode for a double print_header() --- diff --git a/lib/weblib.php b/lib/weblib.php index 33712659c8..0aac8106c0 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1853,6 +1853,9 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $meta= static $headerprinted = false; if ($headerprinted) { + if ($CFG->debug > 7) { + notify('print_header() was called more than once - this should not happen. Please check the code for this page closely, a common culprit is a call to error() after print_header().'); + } return; } else { $headerprinted = true;