aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-02-12 15:56:53 +0100
committerplegall <plg@piwigo.org>2016-02-12 15:56:53 +0100
commit2561928b80f4dae1d460bec2e9c268edf6a5d802 (patch)
tree3d34336a5737eb6a818cff5e1ca0f9653b17d5ed /admin/include
parent6290be46f2307e8b47937af153dcf2b66bba2e4e (diff)
bug #383, fix session deletion when user deleted
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 4d3ccebe6..b377fc7a6 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -407,7 +407,7 @@ DELETE FROM '.$table.'
// purge of sessions
$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);