bug #383, fix the bug in dedicated function as well

This commit is contained in:
plegall 2016-02-13 15:30:55 +01:00
parent 47838a23b3
commit bfb8b0b0fd

View file

@ -272,7 +272,7 @@ function delete_user_sessions($user_id)
$query = '
DELETE
FROM '.SESSIONS_TABLE.'
WHERE data LIKE \'pwg_uid|i:'.(int)$user_id.';%\'
WHERE data LIKE \'%pwg_uid|i:'.(int)$user_id.';%\'
;';
pwg_query($query);
}