mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:38:53 +00:00
Prevent message_die() from being called recursively (by accident :D)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3288 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e32168e851
commit
99a8e49233
1 changed files with 9 additions and 1 deletions
|
@ -500,6 +500,14 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '',
|
||||||
global $userdata, $user_ip, $session_length;
|
global $userdata, $user_ip, $session_length;
|
||||||
global $starttime;
|
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;
|
$sql_store = $sql;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -710,4 +718,4 @@ function redirect($url)
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue