get_return_method bug in My_Model.php, version 0.93

edited September 2011 in Bug Reports
I got the following error when using $this->examples_model->get_return_method();
Message: Missing argument 1 for MY_Model::get_return_method()...
Filename: core/MY_Model.php
Line Number: 1849
The code from application/core/MY_Model around line 1842:

/**
* Set the default return type
*
* @access public
* @param string return type (object, array, query, auto)
* @return void
*/
public function get_return_method($return_method)
{
return $this->return_method;
}
It looks like there was a copy paste from set_return_method, including doc comments and an erroneous $return_method argument.

Comments

Sign In or Register to comment.