Skip to content
Snippets Groups Projects
Commit 4c4571a1 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #2988 pb with sql query

parent d7fe5397
No related branches found
No related tags found
No related merge requests found
...@@ -810,13 +810,8 @@ class users_controler extends ObjectControler implements ObjectControlerIF ...@@ -810,13 +810,8 @@ class users_controler extends ObjectControler implements ObjectControlerIF
} }
} }
if($ok == true){ if($ok == true){
$query = "delete from " . USER_BASKETS_SECONDARY_TABLE $query = "DELETE FROM user_baskets_secondary WHERE user_id = :userId AND group_id NOT IN (SELECT group_id FROM usergroup_content WHERE user_id = :userId)";
. " where system_id in (select system_id from " $stmt = self::$db->query($query, array(":userId" => $userId));
. USER_BASKETS_SECONDARY_TABLE
. " where group_id not in (select group_id from "
. USERGROUP_CONTENT_TABLE
. " where user_id = ?))";
$stmt = self::$db->query($query, array($userId));
} }
return $ok; return $ok;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment