EllisLab/CodeIgniter — pull request #1587 by jonnu (2012-07-07 09:37:31+00:00)
Title: missing '$this->' causing custom result objects to return as null/empty ...

```...arrays for ->row() and ->result() methods.```

Without this fix, code such as this seems broken:

```php
class Test_Object {

public function getId() {
return $this->id;
}

public function getTitle() {
return $this->title;
}
}

class Test extends CI_Controller {

public function index() {

$this->db->select('*');
$this->db->from('test');
$this->db->where('id', 1);
$test = $this->db->get();

// Fetch a 'Test_Object'.
$object = $test->row(0, 'Test_Object');

// Expecting a dump of 'Test_Object' now:
var_dump($object);
}
}
```

It appears as if there is a typo (missing $this->) which is causing the problem.