if (!$this->subscriptionLengthPermanent) {
if (isset($_POST['subscriptionLength'])) $this->subscriptionLength = intval($_POST['subscriptionLength']);
if (isset($_POST['subscriptionLengthUnit'])) $this->subscriptionLengthUnit = $_POST['subscriptionLengthUnit'];
- }
+ }
if (!empty($_POST['isRecurring'])) $this->isRecurring = 1;
if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
}
if ($userSubscription->getSubscription()->excludedSubscriptionIDs) {
foreach (explode(',', $userSubscription->getSubscription()->excludedSubscriptionIDs) as $subscriptionID) {
if (isset($this->subscriptions[$subscriptionID])) unset($this->subscriptions[$subscriptionID]);
- }
+ }
}
}
}
// replace description if Open Graph Protocol tag was given
if ($name == 'og:description') {
$this->objects['description']['value'] = $value;
- }
+ }
}
/**
$updateServers[] = $updateServer;
}
- }
+ }
// loop servers
$refreshedPackageLists = false;