Fix variable name
authorMatthias Schmidt <gravatronics@live.com>
Sun, 20 Dec 2020 10:36:19 +0000 (11:36 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 20 Dec 2020 10:36:19 +0000 (11:36 +0100)
wcfsetup/install/files/lib/system/condition/user/UserLastActivityTimeIntervalDaysCondition.class.php

index ff962f6c973985d30a8d0c154b21201bea10b645..c3e4748df8f424040f88b5fe19bf772c820f702d 100644 (file)
@@ -65,7 +65,7 @@ class UserLastActivityTimeIntervalDaysCondition extends AbstractSingleFieldCondi
         */
        public function checkObject(DatabaseObject $object, array $conditionData) {
                if (!($object instanceof User) && !ClassUtil::isDecoratedInstanceOf($object, User::class)) {
-                       throw new InvalidObjectArgument($objectList, User::class);
+                       throw new InvalidObjectArgument($object, User::class);
                }
                
                if (isset($conditionData['startDays'])) {