1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Bugtracker #4601 - delete from generic even if not in banlist

This commit is contained in:
e107steved 2008-11-29 13:24:17 +00:00
parent ec2e436ead
commit f021f104df

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/fla.php,v $
| $Revision: 1.4 $
| $Date: 2008-08-28 19:22:56 $
| $Revision: 1.5 $
| $Date: 2008-11-29 13:24:17 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -53,9 +53,9 @@ function deleteBan($banID, $banIP = '')
$banIP = $at['gen_ip'];
}
}
$sql2->db_Delete("generic", "gen_id='{$banID}' "); // Delete from generic table
if ($banIP == '') return FALSE;
$sql2->db_Delete("banlist", "banlist_ip='{$banIP}'"); // Delete from main banlist
$sql2->db_Delete("generic", "gen_id='{$banID}' "); // Delete from generic table
return TRUE;
}