From 56be6ad6fae7b1ed05e840287aef633e10d08848 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 4 Aug 2009 02:18:38 +0000 Subject: [PATCH] MINOR Fixed undefined Month in ArchiveWidget --- code/ArchiveWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ArchiveWidget.php b/code/ArchiveWidget.php index 13fa279..0d7da8a 100644 --- a/code/ArchiveWidget.php +++ b/code/ArchiveWidget.php @@ -88,7 +88,7 @@ class ArchiveWidget extends Widget { if($sqlResults) foreach($sqlResults as $sqlResult) { $isMonthDisplay = $this->DisplayMode == 'month'; - $monthVal = ($sqlResult['Month']) ? (int) $sqlResult['Month'] : 1; + $monthVal = (isset($sqlResult['Month'])) ? (int) $sqlResult['Month'] : 1; $month = ($isMonthDisplay) ? $monthVal : 1; $year = ($sqlResult['Year']) ? (int) $sqlResult['Year'] : date('Y');