forked from extern/egroupware
Added a fix for a missing, and a little cleanup for viewing events with a single category.
This commit is contained in:
parent
b28384e34b
commit
548548dfda
@ -284,7 +284,7 @@
|
|||||||
{
|
{
|
||||||
$printer = '<body bgcolor="'.$phpgw_info['theme']['bg_color'].'">';
|
$printer = '<body bgcolor="'.$phpgw_info['theme']['bg_color'].'">';
|
||||||
$print = '';
|
$print = '';
|
||||||
$phpgw_info['flags']['nofooter'] = True;
|
$GLOBALS['phpgw_info']['flags']['nofooter'] = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
$var = Array(
|
$var = Array(
|
||||||
@ -1835,7 +1835,6 @@
|
|||||||
function planner_category($ids)
|
function planner_category($ids)
|
||||||
{
|
{
|
||||||
static $cats;
|
static $cats;
|
||||||
echo "Categories : ".$ids."<br>\n";
|
|
||||||
if(!is_array($ids))
|
if(!is_array($ids))
|
||||||
{
|
{
|
||||||
if (strpos($ids,','))
|
if (strpos($ids,','))
|
||||||
@ -1859,7 +1858,7 @@
|
|||||||
}
|
}
|
||||||
$ret_val[] = $cats[$id];
|
$ret_val[] = $cats[$id];
|
||||||
}
|
}
|
||||||
return implode($ret_val,',');
|
return $ret_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
function week_header($month,$year,$display_name = False)
|
function week_header($month,$year,$display_name = False)
|
||||||
@ -2190,8 +2189,16 @@
|
|||||||
|
|
||||||
if ($event['category'])
|
if ($event['category'])
|
||||||
{
|
{
|
||||||
|
$category = Array();
|
||||||
$this->cat->categories($this->bo->owner,'calendar');
|
$this->cat->categories($this->bo->owner,'calendar');
|
||||||
|
if(strpos($event['category'],','))
|
||||||
|
{
|
||||||
$category = explode(',',$event['category']);
|
$category = explode(',',$event['category']);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$category[] = $event['category'];
|
||||||
|
}
|
||||||
@reset($category);
|
@reset($category);
|
||||||
while(list($key,$cat) = each($category))
|
while(list($key,$cat) = each($category))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user