Fixed sql. Remove limit from update.

This commit is contained in:
Vasily Komrakov 2017-06-13 22:37:28 +03:00
commit 3cf76c97f9
No known key found for this signature in database
GPG key ID: 558236680C20A69A
20 changed files with 31 additions and 31 deletions

View file

@ -46,7 +46,7 @@ foreach ($bf['user_opt'] as $opt_name => $opt_bit) {
}
}
DB()->query("UPDATE " . BB_USERS . " SET user_opt = {$u_data['user_opt']} WHERE user_id = $user_id LIMIT 1");
DB()->query("UPDATE " . BB_USERS . " SET user_opt = {$u_data['user_opt']} WHERE user_id = $user_id");
// Удаляем данные из кеша
cache_rm_user_sessions($user_id);