From fca74c717b1f285d4834dace4239baf14a5179fc Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 17 Jun 2015 18:14:34 +0200 Subject: [PATCH] Fixed broken subscription end date --- .../files/lib/acp/form/PaidSubscriptionUserAddForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php index fa1f1a7458..12289ab234 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php @@ -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) { -- 2.20.1