mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Fixed broken page types filtering
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user