diff --git a/book.php b/book.php index ed5aab0..516c4d3 100644 --- a/book.php +++ b/book.php @@ -73,6 +73,10 @@ class Book extends Base { $this->comment = $line->comment; $this->uuid = $line->uuid; $this->hasCover = $line->has_cover; + if (!file_exists ($this->getFilePath ("jpg"))) { + // double check + $this->hasCover = 0; + } $this->rating = $line->rating; } diff --git a/bookdetail.php b/bookdetail.php index d893ae6..ff55374 100644 --- a/bookdetail.php +++ b/bookdetail.php @@ -20,7 +20,13 @@ $book->getLinkArray ();