fix for bug [ 1446044 ] eGw asking for delete sub-categories when it not exists

This commit is contained in:
Ralf Becker 2006-03-10 09:59:18 +00:00
parent db1a32aa33
commit e2988daef4

View File

@ -96,7 +96,7 @@
{
$data['type'] = $data['type'] ? $data['type'] : '';
$data['cat_id'] = $data['cat_id'] ? $data['cat_id'] : '';
return $this->cats->exists($data['type'],$data['cat_name'],$data['cat_id']);
return $this->cats->exists($data['type'],$data['cat_name'],$data['type'] == 'subs' ? 0 : $data['cat_id'],$data['type'] != 'subs' ? 0 : $data['cat_id']);
}
function formatted_list($format,$type,$cat_parent,$global_cats)