Fix kommentare

This commit is contained in:
2013-09-27 14:39:37 +02:00
parent e6f7f24ac8
commit bf53fec69c

View File

@@ -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'));
}));