Sfoglia il codice sorgente

Fix reg /vorgeschlagen

Daniel 8 anni fa
parent
commit
c66f7d19a4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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>