diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-10-04 12:03:05 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-10-04 12:03:05 +0000 |
commit | 07f6a6b5f3092f53304be24e43ad2b92912ae5c3 (patch) | |
tree | 77a4f718df92085dd6a0579266c9bc82016c8e58 /phpBB/includes/functions.php | |
parent | 92f554e38aaf3c4d280c201d3a6521e519acfb47 (diff) | |
download | forums-07f6a6b5f3092f53304be24e43ad2b92912ae5c3.tar forums-07f6a6b5f3092f53304be24e43ad2b92912ae5c3.tar.gz forums-07f6a6b5f3092f53304be24e43ad2b92912ae5c3.tar.bz2 forums-07f6a6b5f3092f53304be24e43ad2b92912ae5c3.tar.xz forums-07f6a6b5f3092f53304be24e43ad2b92912ae5c3.zip |
- 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
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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__)) { |