public function has_section($p_sectionNumber) { $today = new Date(time()); $subscriptionId = $this->m_dbObject->getSubscriptionId(); $section = new SubscriptionSection($subscriptionId, $p_sectionNumber, 0); if ($section->exists() && $section->getExpirationDate() >= $today->getDate()) { return (int) true; } $currentLanguageNumber = CampTemplate::singleton()->context()->language->number; $section = new SubscriptionSection($subscriptionId, $p_sectionNumber, $currentLanguageNumber); return (int) ($section->exists() && $section->getExpirationDate() >= $today->getDate()); }