mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR Fixed undefined Month in ArchiveWidget
This commit is contained in:
parent
1a2e2a1d98
commit
56be6ad6fa
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user