diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1acc321ce6..ce87e1a872 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -500,6 +500,14 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', global $userdata, $user_ip, $session_length; global $starttime; + if(defined('HAS_DIED')) + { + die("message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?"); + } + + define(HAS_DIED, 1); + + $sql_store = $sql; // @@ -710,4 +718,4 @@ function redirect($url) exit; } -?> \ No newline at end of file +?>