Fix delete member problem

This commit is contained in:
Alan Garcia 2011-05-15 21:11:48 +00:00
parent 3986848445
commit 4e182e2e30
3 changed files with 4 additions and 3 deletions

1
.gitattributes vendored
View File

@ -170,6 +170,7 @@ bureau/admin/images/folderhta.png -text
bureau/admin/images/ftp.png -text
bureau/admin/images/help.png -text
bureau/admin/images/home.png -text
bureau/admin/images/ip.png -text
bureau/admin/images/lang.png -text
bureau/admin/images/mail.png -text
bureau/admin/images/minus.png -text

BIN
bureau/admin/images/ip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -138,11 +138,11 @@ class m_authip {
/*
* Fonction appelée par Alternc lors de la suppression d'un utilisateur
*
* @param integer $l_uid uid de l'utilisater à supprimer
* @return boolean Retourne TRUE
*/
function alternc_del_member($l_uid) {
$db->query("SELECT id FROM authorised_ip WHERE uid ='$l_uid';");
function alternc_del_member() {
global $cuid;
$db->query("SELECT id FROM authorised_ip WHERE uid ='$cuid';");
while ($db->next_record()) {
$this->ip_delete($db->f('id'));
}