/trunk/Db/Table.php |
---|
226,6 → 226,7 |
* Finds a record by ID |
* |
* @param mixed $id |
* @return array |
*/ |
public function find($id) |
{ |
235,6 → 236,13 |
debug($id); |
} |
return $this->select(null, array($this->_id => $id)); |
$result = $this->select(null, array($this->_id => $id)); |
if ($result) |
{ |
$result = $result[0]; |
} |
return $result; |
} |
} |