From e575c0597de25ad667e25971386804d39cfd46a7 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 10 Apr 2006 16:00:34 +0000 Subject: [PATCH] Added a notify in debugging mode for a double print_header() --- lib/weblib.php | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5