Fix undefined variable
authorJoshua Rüsweg <josh@bastelstu.be>
Tue, 1 Aug 2017 10:04:48 +0000 (12:04 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Tue, 1 Aug 2017 10:04:48 +0000 (12:04 +0200)
See #2315

wcfsetup/install/files/lib/data/user/trophy/UserTrophyAction.class.php

index 38c5730086859f23a247de294ee50ea2b6136c8e..afa8ecb3a2397f79a0bd38f82594c497cc7f9d1c 100644 (file)
@@ -115,7 +115,7 @@ class UserTrophyAction extends AbstractDatabaseObjectAction {
                        }
                        
                        foreach ($updateUserTrophies as $userID => $count) {
-                               $userAction = new UserAction([$returnValues->userID], 'update', [
+                               $userAction = new UserAction([$userID], 'update', [
                                        'counters' => [
                                                'trophyPoints' => $count
                                        ]