diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index a20d3af0fd..f3f8529244 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -281,12 +281,12 @@ $sql_where_ands[] = "leg = :leg"; $parameters['leg'] = $leg; } - //Exclude enterprise ring group legs + //Exclude enterprise ring group and follow me originated legs if (!permission_exists('xml_cdr_enterprise_leg')) { $sql_where_ands[] .= "originating_leg_uuid IS NULL"; } //If you can't see lose_race, don't run stats on it - elseif (!permission_exists('xml_cdr_lose_race')) { + if (!permission_exists('xml_cdr_lose_race')) { $sql_where_ands[] = "hangup_cause != 'LOSE_RACE'"; }