소스 검색

Fix kommentare

Daniel Müllers 11 년 전
부모
커밋
bf53fec69c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/routes.php

+ 1 - 1
app/routes.php

@@ -111,7 +111,7 @@ Route::post('comment', array('as' => 'comment', function() {
 	$c->film = Input::get('film');
 	$c->user = Input::get('user');
 	$c->text = Input::get('text');
-	$c->bewertung = Input::get('rate');
+	$c->bewertung = !is_null(Input::get('rate')) ? Input::get('rate') : 0;
 	$c->save();
 	return Redirect::to('film/' . Input::get('film'));
 }));