]> BookStack Code Mirror - bookstack/commitdiff
Fix incorrect condition for displaying new books section 5470/head
authorSilverlan <redacted>
Mon, 3 Feb 2025 18:01:08 +0000 (19:01 +0100)
committerGitHub <redacted>
Mon, 3 Feb 2025 18:01:08 +0000 (19:01 +0100)
resources/views/books/index.blade.php

index 418c0fea8d1d40ae16e4af61c45609e0180ebd28..197de011d0133c2de553cd993b9387b05da60611 100644 (file)
@@ -23,7 +23,7 @@
 
     <div id="new" class="mb-xl">
         <h5>{{ trans('entities.books_new') }}</h5>
-        @if(count($popular) > 0)
+        @if(count($new) > 0)
             @include('entities.list', ['entities' => $new, 'style' => 'compact'])
         @else
             <p class="text-muted pb-l mb-none">{{ trans('entities.books_new_empty') }}</p>
@@ -59,4 +59,4 @@
         </div>
     </div>
 
-@stop
\ No newline at end of file
+@stop