if($CrossID==”) $orwheres[] = ‘ ( arc.arcrank>=0 and arc.typeid IN (‘.GetSonIds($typeid).’) OR arc.typeid2 IN (‘.GetSonIds($typeid).’)) ‘; else $orwheres[] = ‘ (arc.arcrank>=0 and arc.typeid IN (‘.GetSonIds($typeid).’,’.$CrossID.’) OR arc.typeid2 IN (‘.GetSonIds($typeid).’,’.$CrossID.’)) ‘;