mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 00:06:55 +02:00
Minor fix in PagesEditor class
This commit is contained in:
@@ -353,7 +353,7 @@ class PagesEditor extends Wire {
|
||||
if(!$parent->id) $parent = $this->pages->get("include=all, template=$idStr");
|
||||
}
|
||||
|
||||
if($parent->id) $page->parent = $parent;
|
||||
if($parent && $parent->id) $page->parent = $parent;
|
||||
}
|
||||
|
||||
// assign page name
|
||||
|
Reference in New Issue
Block a user