Fixed broken subscription end date
authorMarcel Werk <burntime@woltlab.com>
Wed, 17 Jun 2015 16:14:34 +0000 (18:14 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 17 Jun 2015 16:20:05 +0000 (18:20 +0200)
wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php

index fa1f1a745890a86c62217dd3fd17680ef0c36721..12289ab2341b5ca5dbe23c09b8a317ba8f87a5c0 100644 (file)
@@ -110,7 +110,7 @@ class PaidSubscriptionUserAddForm extends AbstractForm {
                        throw new UserInputException('username', 'notFound');
                }
                
-               if ($this->subscription->subscrtionLength) {
+               if ($this->subscription->subscriptionLength) {
                        $this->endDateTime = \DateTime::createFromFormat('Y-m-d', $this->endDate, new \DateTimeZone('UTC'));
                        if ($this->endDateTime === false || $this->endDateTime->getTimestamp() < TIME_NOW) {
                                throw new UserInputException('endDate');
@@ -126,7 +126,7 @@ class PaidSubscriptionUserAddForm extends AbstractForm {
                
                $userSubscription = PaidSubscriptionUser::getSubscriptionUser($this->subscriptionID, $this->user->userID);
                $data = array();
-               if ($this->subscription->subscrtionLength) {
+               if ($this->subscription->subscriptionLength) {
                        $data['endDate'] = $this->endDateTime->getTimestamp();
                }
                if ($userSubscription === null) {