summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/temp_functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/temp_functions.php b/includes/temp_functions.php
index 30fe76a..c1cc96f 100644
--- a/includes/temp_functions.php
+++ b/includes/temp_functions.php
@@ -75,7 +75,7 @@ function account_delete($id, $arbno, $adminid){
mysql_query($query);
//delete all other email address
- $query = "select * from `email` where `memid`='".$id."' and `memid`='".$emailid."'" ;
+ $query = "select * from `email` where `memid`='".$id."' and `id`!='".$emailid."'" ;
$res=mysql_query($query);
while($row = mysql_fetch_assoc($res)){
account_email_delete($row['id']);