Skip to content

Commit

Permalink
Initialize missing variable (octobercms#3318)
Browse files Browse the repository at this point in the history
Fixes octobercms#3317. Credit to @mirorauhala
  • Loading branch information
mirorauhala authored and LukeTowers committed Dec 21, 2017
1 parent 1d3828c commit d54c3b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/cms/classes/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public static function getMenuTypeInfo($type)
if ($type == 'cms-page') {
$theme = Theme::getActiveTheme();
$pages = self::listInTheme($theme, true);
$references = [];

foreach ($pages as $page) {
$references[$page->getBaseFileName()] = $page->title . ' ['.$page->getBaseFileName().']';
Expand Down

0 comments on commit d54c3b1

Please sign in to comment.