Fix fatal error on deleting the homepage

This commit is contained in:
Flavio Copes
2015-08-07 12:05:34 +02:00
parent 79de53d310
commit fe8446aa08
2 changed files with 18 additions and 4 deletions

View File

@@ -486,6 +486,11 @@ class Admin
if (!$page) {
$slug = basename($path);
if ($slug == '') {
return null;
}
$ppath = dirname($path);
// Find or create parent(s).