Skip to content

Commit 2291d78

Browse files
authored
Merge pull request #5470 from Silverlan/patch-1
Fix incorrect condition for displaying new books section
2 parents 7901ca9 + 12cc2f0 commit 2291d78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/books/index.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<div id="new" class="mb-xl">
2525
<h5>{{ trans('entities.books_new') }}</h5>
26-
@if(count($popular) > 0)
26+
@if(count($new) > 0)
2727
@include('entities.list', ['entities' => $new, 'style' => 'compact'])
2828
@else
2929
<p class="text-muted pb-l mb-none">{{ trans('entities.books_new_empty') }}</p>
@@ -59,4 +59,4 @@
5959
</div>
6060
</div>
6161

62-
@stop
62+
@stop

0 commit comments

Comments
 (0)