summaryrefslogtreecommitdiff
path: root/includes/classes/Calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/classes/Calendar.php')
-rw-r--r--includes/classes/Calendar.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/classes/Calendar.php b/includes/classes/Calendar.php
index 03b2b99..b3a5fc0 100644
--- a/includes/classes/Calendar.php
+++ b/includes/classes/Calendar.php
@@ -206,6 +206,7 @@ class Calendar extends LibertyContent {
**/
public function buildCalendarNavigation( $pDateHash ) {
global $gBitUser, $gBitSystem;
+ if ( empty( $this->mDate ) ) return [];
$today = $this->mDate->getdate( time(), false );
$focus = $this->mDate->getdate( $pDateHash['focus_date'], false );
@@ -243,6 +244,7 @@ class Calendar extends LibertyContent {
**/
public function buildMonth( $pDateHash ) {
global $gBitSmarty;
+ if ( empty( $this->mDate ) ) return [];
$focus = $this->mDate->getdate( $pDateHash['focus_date'], false );