From cf4e8a527c4a6b6bd15a517531f7bfdeeaee51d6 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 8 Nov 2025 18:07:08 +0100 Subject: [PATCH] User/Fixup * fix fetching user characters, borked in 474b5b5aec062b61e8d707c91739b50ad77e81ef --- includes/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/user.class.php b/includes/user.class.php index a854b225..7233b016 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -783,7 +783,7 @@ class User $ap = DB::Aowow()->selectCol('SELECT `profileId` FROM ?_account_profiles WHERE `accountId` = ?d', self::$id); // the old approach ['OR', ['user', self::$id], ['ap.accountId', self::$id]] caused keys to not get used - $conditions = $ap ? [['OR', ['user', self::$id], ['id', array_keys($ap)]]] : ['user', self::$id]; + $conditions = $ap ? [['OR', ['user', self::$id], ['id', $ap]]] : ['user', self::$id]; if (!self::isInGroup(U_GROUP_ADMIN | U_GROUP_BUREAU)) $conditions[] = [['cuFlags', PROFILER_CU_DELETED, '&'], 0];