From: larssandergreen Date: Fri, 23 Jun 2023 21:27:57 +0000 (-0600) Subject: Don't show filtered NaN on Groups when 0 groups found X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b5fbd569f6829d4a82b744b3ef8ba05e518fd0b7;p=civicrm-core.git Don't show filtered NaN on Groups when 0 groups found --- diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 002e12089f..746bd01798 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -815,8 +815,8 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { $groupsDT = []; $groupsDT['data'] = $groupList; - $groupsDT['recordsTotal'] = !empty($params['total']) ? $params['total'] : NULL; - $groupsDT['recordsFiltered'] = !empty($params['total']) ? $params['total'] : NULL; + $groupsDT['recordsTotal'] = !empty($params['total']) ? $params['total'] : 0; + $groupsDT['recordsFiltered'] = !empty($params['total']) ? $params['total'] : 0; return $groupsDT; }