]> BookStack Code Mirror - bookstack/commitdiff
Update TrashCan.php
authorAleksandr Sazhin <redacted>
Wed, 3 Feb 2021 07:03:54 +0000 (10:03 +0300)
committerDan Brown <redacted>
Sat, 6 Feb 2021 13:23:12 +0000 (13:23 +0000)
bookshelf

app/Entities/Tools/TrashCan.php

index d2447ec6830c8935f3914a4410c16cedf81b3043..7be432f4c5df14b7066d5bcacdde90dd90c6fe04 100644 (file)
@@ -298,7 +298,7 @@ class TrashCan
         if ($entity->isA('book')) {
             return $this->destroyBook($entity);
         }
-        if ($entity->isA('shelf')) {
+        if ($entity->isA('bookshelf')) {
             return $this->destroyShelf($entity);
         }
     }