Whenever i tried to give position to phpfreechat in Block section of Drupal i got this message
warning: Invalid argument supplied for foreach() in /home/digitall/public_html/drupalnew/sites/all/modules/phpfreechat/phpfreechat.module on line 266.
if ($delta == 2) {
$channel = variable_get('phpfreechat_block_channel_2', '');
$lastmsg_raw = $info->getLastMsg($channel, 10);
$output = '';
[:(] foreach($lastmsg_raw["data"] as $m) {
$output .= $m["sender"].': ';
$output .= '<em>' . $m["param"].'</em>
';
$date = $m["date"];
$time = $m["time"];
}
Please help me that how to get rid of this problem....
Do reply please its urgent