Skip to content

NOW MANAGED ON CODEBERG

Update TrashCan.php

Aleksandr Sazhincc5d0ef4cf89
diff --git a/app/Entities/Tools/TrashCan.php b/app/Entities/Tools/TrashCan.php
index d2447ec68..7be432f4c 100644
--- a/app/Entities/Tools/TrashCan.php
+++ b/app/Entities/Tools/TrashCan.php
@@ -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);
}
}