Achievement fix in characterprofile.php

As the best answer by slawkens at otland here:
https://otland.net/threads/znote-acc-sql-error-player_storage-in-characterprofile.251736/#post-2442672
This commit is contained in:
Stefan A. Brannfjell 2017-06-18 15:17:46 +02:00 committed by GitHub
parent 5f8b5503d1
commit ef4a8f9e73

View File

@ -20,7 +20,8 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
$profile_data['online'] = user_is_online_10($user_id);
if ($config['Ach']) {
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`=(int)$user_id");
$user_id = (int) $user_id;
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`=$user_id");
}
} else { // TFS 0.2, 0.3
if (!$loadOutfits) {