[eluser]Phil Sturgeon[/eluser]
Using $this->db->affected_rows() will give you a 0 (could be confused with FALSE) when a query runs but matches no rows.
Getting a true boolean response is as simple as:
Code:
return (bool) $this->db->delete();
Errors return false but if the query executes it will give you a TRUE even if no rows were affected.