浏览代码

Fix reg /vorgeschlagen

Daniel 8 年之前
父节点
当前提交
c66f7d19a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>