summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus2020-12-16 15:26:11 +0100
committerhorus2020-12-16 15:26:11 +0100
commit296f4d0c3834a4e4cac08e274c7ae36fffc05ec9 (patch)
treee9881ee2a4568ac523a60c263fea004711fc65ea
parent253121dcd8f8d1ad81076d08bfa4d24074198d96 (diff)
downloadsenpai-296f4d0c3834a4e4cac08e274c7ae36fffc05ec9.tar.gz
Catch glitch if an anime from the next season is already added.
-rw-r--r--resources/views/list_anime.blade.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/list_anime.blade.php b/resources/views/list_anime.blade.php
index dd8cc4e..49a1935 100644
--- a/resources/views/list_anime.blade.php
+++ b/resources/views/list_anime.blade.php
@@ -44,7 +44,7 @@
</div>
<div class="row">
@foreach($all_anime as $anime)
-@if ( $anime->season_name != getSeason() && "airing_anime" == \Request::route()->getName() )
+@if ( $anime->season_name != getSeason() && $anime->season_year <= date('Y') && "airing_anime" == \Request::route()->getName() )
@once
</div>