mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-06-23 12:42:12 +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