Bugfix: Gesamtsumme der Stimmen auf /beliebt wieder korrekt. Auf Film-Seite, inaktive Nutzer gekennzeichnet.

This commit is contained in:
daniel committed 2016-05-20 05:39:35 +02:00
1 parent 372eadd0d9
commit d0b73e92ec
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
$vp = $film->upvotes;
$np = $film->downvotes;
?>
<span class="glyphicon glyphicon-transfer"></span>&nbsp;{{ $vp + $np }}
<span class="glyphicon glyphicon-transfer"></span>&nbsp;{{ $np != null ? $vp + $np : $film->votes }}
</td>
<td>
@if(($vp) > 0) <span class="label label-default">+{{$vp}}</span>