mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
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:
parent
5f8b5503d1
commit
ef4a8f9e73
@ -20,7 +20,8 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
|
|||||||
$profile_data['online'] = user_is_online_10($user_id);
|
$profile_data['online'] = user_is_online_10($user_id);
|
||||||
|
|
||||||
if ($config['Ach']) {
|
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
|
} else { // TFS 0.2, 0.3
|
||||||
if (!$loadOutfits) {
|
if (!$loadOutfits) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user