From 07f6a6b5f3092f53304be24e43ad2b92912ae5c3 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 4 Oct 2007 12:03:05 +0000 Subject: - fixed database updater - fixed hook function call in database updater - fixed bot agent detection (we used a wildcard within the w3c-agent, therefore we should really support this. ;)) git-svn-id: file:///svn/phpbb/trunk@8131 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 29512e0e51..4a3659c758 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1577,7 +1577,7 @@ function append_sid($url, $params = false, $is_amp = true, $session_id = false) // Developers using the hook function need to globalise the $_SID and $_EXTRA_URL on their own and also handle it appropiatly. // They could mimick most of what is within this function - if ($phpbb_hook->call_hook(__FUNCTION__, $url, $params, $is_amp, $session_id)) + if (!empty($phpbb_hook) && $phpbb_hook->call_hook(__FUNCTION__, $url, $params, $is_amp, $session_id)) { if ($phpbb_hook->hook_return(__FUNCTION__)) { @@ -4463,7 +4463,7 @@ function phpbb_user_session_handler() { global $phpbb_hook; - if ($phpbb_hook->call_hook(__FUNCTION__)) + if (!empty($phpbb_hook) && $phpbb_hook->call_hook(__FUNCTION__)) { if ($phpbb_hook->hook_return(__FUNCTION__)) { -- cgit v1.2.1