Double check if the cover is really there.
I had some problems with path having case difference on Linux.
This commit is contained in:
parent
38b61c89da
commit
ceaae73e19
4
book.php
4
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,13 @@ $book->getLinkArray ();
|
|||
<div class="bookpopup">
|
||||
<div class="booke">
|
||||
<div class="cover">
|
||||
<?php
|
||||
if ($book->hasCover) {
|
||||
?>
|
||||
<img src="fetch.php?id=<?php echo $book->id ?>&height=150" alt="cover" />
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="download">
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue