First off is the deprecated ereg and eregi foreach statements. I changed these to preg ('/)/' to solve that minor error.
The next is giving me invalid argument for foreach line 186 and 266, foreach($result as $res) and foreach($rows as $row). I'm not exactly clear as to what is going on there.
Thankyou for downloading freichat
Firstly please post your problems in freichat forums.
The deprecated error has been solved in the latest version.
And the second error can be caused only if you do not have any friends/connecions in your account or if you have disabled connections in CB