Minor - avoid notice in sessions catalogue

pull/2487/head
Yannick Warnier 10 years ago
parent 21602d9b07
commit 23e207a9fd
  1. 2
      main/auth/courses_controller.php

@ -831,7 +831,7 @@ class CoursesController
'is_subscribed' => SessionManager::isUserSubscribedAsStudent($session->getId(), $userId),
'icon' => $this->getSessionIcon($session->getName()),
'date' => $sessionDates['display'],
'price' => $isThisSessionOnSale['html'],
'price' => (!empty($isThisSessionOnSale['html'])?$isThisSessionOnSale['html']:''),
'subscribe_button' => isset($isThisSessionOnSale['buy_button']) ? $isThisSessionOnSale['buy_button'] : $this->getRegisteredInSessionButton(
$session->getId(),
$session->getName(),

Loading…
Cancel
Save