Skip to content

Commit 12cc2f0

Browse files
authored
Fix incorrect condition for displaying new books section
1 parent 786a434 commit 12cc2f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/books/index.blade.php

Lines changed: 2 additions & 2 deletions
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)