1
0
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:
Ryan Cramer
2023-12-15 13:33:11 -05:00
parent 100711c2f4
commit c62deb7946

View File

@@ -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