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

@ -50,7 +50,7 @@ switch ($mode) {
$this->ajax_die('Invalid mode');
}
DB()->query("UPDATE " . BB_USERS . " SET avatar_ext_id = $new_ext_id WHERE user_id = $user_id LIMIT 1");
DB()->query("UPDATE " . BB_USERS . " SET avatar_ext_id = $new_ext_id WHERE user_id = $user_id");
cache_rm_user_sessions($user_id);