1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Issue #308 - changes to mitigate sending of multiple notifies on flood ban

This commit is contained in:
SteveD
2013-05-15 22:27:23 +01:00
parent e4ebdfbce7
commit 77b9ec50e9
2 changed files with 16 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ class e_online
if ($row['online_pagecount'] > $online_bancount)
{
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_banlist.php');
if (e107::getIPHandler()->add_ban(2,str_replace('--HITS--',$row['online_pagecount'],BANLAN_78),$ip,0))
if (TRUE === e107::getIPHandler()->add_ban(2,str_replace('--HITS--',$row['online_pagecount'],BANLAN_78),$ip,0))
{
e107::getEvent()->trigger('flood', $ip);
exit;