put a safety check around new unsetRoute() method

This commit is contained in:
Andy Miller
2015-08-06 18:29:29 -06:00
parent d0513dfe86
commit 8921b8afb1

View File

@@ -879,7 +879,9 @@ class AdminController
// Always redirect if a page route was changed, to refresh it
if ($obj instanceof Page\Page) {
$obj->unsetRoute();
if (method_exists($obj, 'unsetRoute')) {
$obj->unsetRoute();
}
$this->setRedirect($this->view . $obj->route());
}