ErrorException [ Notice ]: Undefined index: rating

APPPATH/classes/controller/index.php [ 195 ]

190     public function action_rating() 
191     {
192     	$this->auto_render = false;
193     	
194     	$rating = ORM::factory('rating');
195     	if($_POST['rating'] == 'no') {
196 	    	$rating->question = $_POST['question'];
197 	    	$rating->email = $_POST['email'];
198     	} else {
199 	    	$rating->question = '';
200 	    	$rating->email = '';
  1. APPPATH/classes/controller/index.php [ 195 ] » Kohana_Core::error_handler()

  2. {PHP internal call} » Controller_Index->action_rating()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment