PHP 5.4 fix

This commit is contained in:
Andy Miller
2015-04-27 21:58:10 -06:00
parent e8209094a5
commit 20e05109a6

View File

@@ -718,7 +718,8 @@ class AdminController
$data = $this->post;
// Find new parent page in order to build the path.
$parent = empty(trim($data['route'], '/')) ? $pages->root() : $pages->dispatch($data['route'], true);
$route = trim($data['route'], '/');
$parent = empty($route) ? $pages->root() : $pages->dispatch($data['route'], true);
// And then get the current page.
$page = $this->admin->page(true);