Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed "Undefined variable children" bug

  • Loading branch information...
commit 7d791aa16fdfc1daaf4a75b9e47af0867f6f7917 1 parent 2b3868d
@marijnkampf authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  BlogArchiveMenuWidget.php
View
3  BlogArchiveMenuWidget.php
@@ -106,6 +106,7 @@ function Dates() {
if (($isMonthDisplay) || (!$isMonthDisplay && !in_array($year, $years))) {
$years[] = $year;
$current = false;
+ $children = new DataObjectSet();
$LinkingMode = "link";
if (($isMonthDisplay && ($yearParam == $year) && ($monthParam == $month)) || (!$isMonthDisplay && ($yearParam == $year))) {
@@ -117,7 +118,7 @@ function Dates() {
$children = DataObject::get('BlogEntry', $filter, "Date DESC");
}
}
-
+
$results->push(new ArrayData(array(
'Date' => $date,
'Year' => $year,
Please sign in to comment.
Something went wrong with that request. Please try again.