[eluser]web-johnny[/eluser]
As I know the logic is :
if you write
$this->db->where(...);
$this->db->or_where(...);
it will have WHERE ... OR WHERE ....
But if you write just
$this->db->or_where(....);
It will have the result WHERE .... (and not or where)
The same thing is for the like or like.
When you put
$this->db->where(...);
$this->db->or_where(...);
$this->db->or_where(...);
$this->db->or_like(...);
$this->db->or_like(...);
You will have the result WHERE .... OR WHERE .... OR WHERE ....
AND LIKE .... OR LIKE ....
I'm not sure but I think this is not a bug. I usually work with
$this->db->where("sting with all the where or and etc"); Just to be sure that everything works correctly.
Hope this helps