Fixed broken page types filtering

This commit is contained in:
Andy Miller
2016-08-26 13:45:22 -06:00
parent f527af9edb
commit 2dc2feca32
2 changed files with 4 additions and 3 deletions

View File

@@ -978,11 +978,11 @@ class AdminController
if (count($flags)) {
$types = [];
$pageTypes = Pages::pageTypes();
$pageTypes = array_keys(Pages::pageTypes());
foreach ($pageTypes as $pageType) {
if (($pageType = array_search($pageType, $flags)) !== false) {
if (($pageKey = array_search($pageType, $flags)) !== false) {
$types[] = $pageType;
unset($flags[$pageType]);
unset($flags[$pageKey]);
}
}