fix for error on demo: bad argument type for implode on line 3466

This commit is contained in:
Ralf Becker 2004-03-15 23:47:20 +00:00
parent 2238ea9dbb
commit dd8fc15bb6

View File

@ -3610,11 +3610,12 @@
$starttime = $param['starttime'];
$endtime = $param['endtime'];
$participants = $param['participants'];
$participants_id = array();
foreach($participants as $part => $nul)
{
$participants[$part] = $GLOBALS['phpgw']->common->grab_owner_name($part);
// Much better for processor :)
$participants_id[] .= $part;
$participants_id[] = $part;
}
uasort($participants,'strnatcasecmp'); // sort them after their fullname
@ -3641,7 +3642,7 @@
$k = ($j == 0 ? sprintf('%02d',$i).'<br>':'').sprintf('%02d',$j*$increment);
$str .= '<td align="left" bgcolor="'.$this->theme['bg_color'].'"><font color="'.$phpgw_info['theme']['bg_text'].'" face="'.$this->theme['font'].'" size="-2">'
. '<a href="'.$this->page('add','&date='.$date['full'].'&hour='.$i.'&minute='.(interval * $j) . '&participants=' . base64_encode(implode(";", $participants_id)) )."\" onMouseOver=\"window.status='".$i.':'.(($increment * $j)<=9?'0':'').($increment * $j)."'; return true;\">"
. '<a href="'.$this->page('add','&date='.$date['full'].'&hour='.$i.'&minute='.(interval * $j) . '&participants=' . base64_encode(implode(';', $participants_id)) )."\" onMouseOver=\"window.status='".$i.':'.(($increment * $j)<=9?'0':'').($increment * $j)."'; return true;\">"
. $k."</a>&nbsp;</font></td>\n";
}
}