diff --git a/app/views/suggest.blade.php b/app/views/suggest.blade.php index 6c527a5..afd24d2 100644 --- a/app/views/suggest.blade.php +++ b/app/views/suggest.blade.php @@ -27,7 +27,7 @@ $vp = $film->upvotes; $np = $film->downvotes; ?> - {{ $np != null ? $vp + $np : $film->votes }} + {{ !is_null($np) ? $vp + $np : $film->votes }}