mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 11:55:52 +01:00
Update admincontroller.php (#1053)
check if variable "folder" is set in $input
This commit is contained in:
committed by
Flavio Copes
parent
74e950342f
commit
ae451055f9
@@ -1783,7 +1783,7 @@ class AdminController extends AdminBaseController
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($input['folder'] != $page->value('folder')) {
|
if (isset($input['folder']) && $input['folder'] != $page->value('folder')) {
|
||||||
$order = $page->value('order');
|
$order = $page->value('order');
|
||||||
$ordering = $order ? sprintf('%02d.', $order) : '';
|
$ordering = $order ? sprintf('%02d.', $order) : '';
|
||||||
$page->folder($ordering . $input['folder']);
|
$page->folder($ordering . $input['folder']);
|
||||||
|
|||||||
Reference in New Issue
Block a user