Explorar o código

Fix reg /vorgeschlagen

Daniel %!s(int64=8) %!d(string=hai) anos
pai
achega
c66f7d19a4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/views/suggest.blade.php

+ 1 - 1
app/views/suggest.blade.php

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