Fix variable name
authorMatthias Schmidt <gravatronics@live.com>
Tue, 22 Dec 2015 17:06:39 +0000 (18:06 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 22 Dec 2015 17:06:39 +0000 (18:06 +0100)
wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php
wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php
wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php

index b93a81c15dd21ce98c1c9cff20a66ed3119f8dec..5cdd1d206b117a78bb9d66948294cc2943dbe880 100644 (file)
@@ -44,10 +44,10 @@ class UserRegistrationDateCondition extends AbstractSingleFieldCondition impleme
                if (!($objectList instanceof UserList)) return;
                
                if (isset($conditionData['registrationDateEnd'])) {
-                       $userList->getConditionBuilder()->add('user_table.registrationDate < ?', array(strtotime($conditionData['registrationDateEnd']) + 86400));
+                       $objectList->getConditionBuilder()->add('user_table.registrationDate < ?', array(strtotime($conditionData['registrationDateEnd']) + 86400));
                }
                if (isset($conditionData['registrationDateStart'])) {
-                       $userList->getConditionBuilder()->add('user_table.registrationDate >= ?', array(strtotime($conditionData['registrationDateStart'])));
+                       $objectList->getConditionBuilder()->add('user_table.registrationDate >= ?', array(strtotime($conditionData['registrationDateStart'])));
                }
        }
        
index eb0deb88fd0c6b24ed85c6e907a0f079f131074a..964bc6650b8295b92c9dd27995b8e720515d4555 100644 (file)
@@ -37,10 +37,10 @@ class UserRegistrationDateIntervalCondition extends AbstractIntegerCondition imp
                if (!($objectList instanceof UserList)) return;
                
                if ($conditionData['greaterThan'] !== null) {
-                       $userList->getConditionBuilder()->add('user_table.registrationDate < ?', array(TIME_NOW - $conditionData['greaterThan'] * 86400));
+                       $objectList->getConditionBuilder()->add('user_table.registrationDate < ?', array(TIME_NOW - $conditionData['greaterThan'] * 86400));
                }
                if ($conditionData['lessThan'] !== null) {
-                       $userList->getConditionBuilder()->add('user_table.registrationDate > ?', array(TIME_NOW - $conditionData['lessThan'] * 86400));
+                       $objectList->getConditionBuilder()->add('user_table.registrationDate > ?', array(TIME_NOW - $conditionData['lessThan'] * 86400));
                }
        }
        
index cd8151183813572d20c688b5fc1561917410cb75..32ab28abb73447f91627472504cd23b6179acaca 100644 (file)
@@ -56,15 +56,15 @@ class UserStateCondition extends AbstractSingleFieldCondition implements IConten
                if (!($objectList instanceof UserList)) return;
                
                if (isset($conditionData['userIsBanned'])) {
-                       $userList->getConditionBuilder()->add('user_table.banned = ?', array($conditionData['userIsBanned']));
+                       $objectList->getConditionBuilder()->add('user_table.banned = ?', array($conditionData['userIsBanned']));
                }
                
                if ($conditionData['userIsEnabled']) {
                        if ($conditionData['userIsEnabled']) {
-                               $userList->getConditionBuilder()->add('user_table.activationCode = ?', array(0));
+                               $objectList->getConditionBuilder()->add('user_table.activationCode = ?', array(0));
                        }
                        else {
-                               $userList->getConditionBuilder()->add('user_table.activationCode <> ?', array(0));
+                               $objectList->getConditionBuilder()->add('user_table.activationCode <> ?', array(0));
                        }
                }
        }