Error on when clicking account/contact in detail view

Hi, I just upgraded to php to php-5.4.41 this morning (slackware linux 14.1) and now am getting an error when I try to click on a contact/account from a list view of a custom module. A blank page opens up and notes “Error retrieving record. This record may be deleted or you may not be authorized to view it.” However, if I go into detail record and click on same contact/account it works fine. If using stock modules I am not getting same error.

In error log this is what I am getting: "Array to string conversion in /var/www/htdocs/sugar/include/formbase.php on line 209: The excerpt at 209 is $fields.= “”;

Any help appreciated.