use previous information gathered for obtaining the ban type (bug #14674)

git-svn-id: file:///svn/phpbb/trunk@8157 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-10-09 15:11:06 +00:00
parent ea9c1d7ea9
commit 96617d8902

View file

@ -985,7 +985,7 @@ class session
{
$ban_triggered_by = 'user';
}
else if (!empty($row['ban_ip']) && preg_match('#^' . str_replace('\*', '.*?', preg_quote($row['ban_ip'], '#')) . '$#i', $user_ips))
else if ($ip_banned)
{
$ban_triggered_by = 'ip';
}