[eluser]shadowchest[/eluser]
Another one with same bug is this:
In the Model:
function functionname($param='test') {
if($param=='test') return 'This is a test.' else return 'This is not a test.';
}
In the Controller:
function functionname() {
$string = $this->modelname->functionname('nottest');
echo $string;
}
The function above should return "This is not a test.", but it returned "This is a test." string instead.