From: Marcel Werk Date: Wed, 17 Jun 2015 16:14:34 +0000 (+0200) Subject: Fixed broken subscription end date X-Git-Tag: 2.1.5~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fca74c717b1f285d4834dace4239baf14a5179fc;p=GitHub%2FWoltLab%2FWCF.git Fixed broken subscription end date --- 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) {