diff --git a/app/call_centers/app_defaults.php b/app/call_centers/app_defaults.php index 40c554e4ee..932ae5c102 100644 --- a/app/call_centers/app_defaults.php +++ b/app/call_centers/app_defaults.php @@ -43,12 +43,12 @@ if ($domains_processed == 1) { if ($row['call_center_agent_uuid'] == null && $row['agent_uuid'] != null) { $array['call_center_tiers'][$index]['call_center_agent_uuid'] = $row['agent_uuid']; } - if (is_array($array['call_center_tiers'][$index]) && @sizeof($array['call_center_tiers'][$index]) != 0) { + if (!empty($array['call_center_tiers'][$index])) { $array['call_center_tiers'][$index]['call_center_tier_uuid'] = $row['call_center_tier_uuid']; } } - if (is_array($array) && @sizeof($array) != 0) { + if (!empty($array)) { $p = new permissions; $p->add('call_center_tier_edit', 'temp');