]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/PageRepo.php
fix(503): massively simplify the 503 error view
[bookstack] / app / Entities / Repos / PageRepo.php
index 99294646145168a87aebe18c4fc0258911329b7e..828c4572fd100f7355d02077477a85a8728bc216 100644 (file)
@@ -328,7 +328,7 @@ class PageRepo
     public function move(Page $page, string $parentIdentifier): Entity
     {
         $parent = $this->findParentByIdentifier($parentIdentifier);
-        if ($parent === null) {
+        if (is_null($parent)) {
             throw new MoveOperationException('Book or chapter to move page into not found');
         }