Browse Source

Bugfix: Filmdetails sehen ohne angemeldet sein

Daniel Müllers 11 years ago
parent
commit
7620121fca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/views/film.blade.php

+ 2 - 2
app/views/film.blade.php

@@ -10,7 +10,7 @@
 		@if(!is_null($film->gesehen))
 			<div class="label label-success"><span class="glyphicon glyphicon-check"></span> Gesehen am {{ \Carbon\Carbon::parse($film->gesehen)->format('d.m.Y') }}</div>
 		@else
-			<div class="label label-danger" <?php if(Auth::user()->admin) { echo "id='gesehen'"; } ?> style="cursor: pointer;"><span class="glyphicon glyphicon-unchecked"></span> Nicht gesehen</div>
+			<div class="label label-danger" <?php if(!is_null(Auth::user()) && Auth::user()->admin) { echo "id='gesehen'"; } ?> style="cursor: pointer;"><span class="glyphicon glyphicon-unchecked"></span> Nicht gesehen</div>
 		@endif
 	</div>
 	<div class="col-md-9">
@@ -204,4 +204,4 @@
 
 @section('title')
 {{ $film->name }} ~ 
-@stop
+@stop