bug "Wrong datatype for second argument"

Last updated by psy

in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument" in file /var/www/red/mod/notifications/views/default/notifications/subscriptions/forminternals.php (line 203):

 foreach($NOTIFICATION_HANDLERS as $method => $foo) {^M
                    line 203 -->      if (in_array($friend->guid,$subs[$method])) {^M
                                                $checked[$method] = 'checked="checked"';^M
                                        } else {^M
                                                $checked[$method] = '';^M
                                        }^M
                                        if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";^M
                                        $fields .= <<< END^M
                                            <td class="{$method}togglefield">^M
                                            <a border="0" id="{$method}{$friend->guid}" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}{$friend->guid}');">^M
                                            <input type="checkbox" name="{$method}subscriptions[]" id="{$method}checkbox" onclick="adjust{$method}('{$method}{$friend->guid}');" value="{$friend->guid}" {$checked[$method]} /></a></td>^M
END;^M
                                        $i++;^M
                                }