]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Bookshelf.php
Show bookshelves that a book belongs to on a book view
[bookstack] / app / Entities / Bookshelf.php
index 1db348b6bc3c830ba306e6b71ed2f8d4ea4f6279..7ad2415ed938628725d88ece0f010638c6f6493c 100644 (file)
@@ -111,7 +111,7 @@ class Bookshelf extends Entity
      */
     public function appendBook(Book $book)
     {
-       if (!$this->contains($book)) {
+       if ($this->contains($book)) {
            return;
        }