method get_related should only return the ids

This commit is contained in:
Christian Binder 2010-01-22 19:47:32 +00:00
parent a92a3b4a7b
commit fb16385a8d

View File

@ -1545,10 +1545,10 @@ ORDER BY cal_user_type, cal_usre_id
foreach ($this->db->select($this->cal_table,'cal_id,cal_reference',$where,
__LINE__,__FILE__,false,'','calendar') as $row)
{
if ($row['cal_reference'])
if ($row['cal_reference'] != 0)
{
// not the series entry itself
$related[$row['cal_id']] = $row['cal_reference'];
// not the series master
$related[] = $row['cal_id'];
}
}
return $related;