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

@@ -10,6 +10,7 @@
* Curl fix for invalid cert errors with News Feed
* Avoid requiring `admin.super` for ajax calls [#739](https://github.com/getgrav/grav-plugin-admin/issues/739)
* Fix showing HTML in notifications, in the feed
* Fixed broken page type filtering
# v1.1.4
## 08/14/2016

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]);
}
}