mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 10:16:37 +02:00
Fix fatal error on deleting the homepage
This commit is contained in:
@@ -486,6 +486,11 @@ class Admin
|
||||
|
||||
if (!$page) {
|
||||
$slug = basename($path);
|
||||
|
||||
if ($slug == '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
$ppath = dirname($path);
|
||||
|
||||
// Find or create parent(s).
|
||||
|
||||
Reference in New Issue
Block a user