Ignore agent check if empty

git-svn-id: file:///svn/phpbb/trunk@4674 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-11-20 12:49:42 +00:00
parent 84e6b1d0b6
commit 2ce6a07f6d

View file

@ -147,7 +147,7 @@ class session
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
if (preg_match('#' . preg_quote($row['bot_agent'], '#') . '#i', $this->browser)) if ($row['bot_agent'] && preg_match('#' . preg_quote($row['bot_agent'], '#') . '#i', $this->browser))
{ {
$bot = $row['user_id']; $bot = $row['user_id'];
} }