X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FAJAX.php;h=d47b9caf05563f1198b6a8b8ba47fe20b8621cac;hb=b9d0770b6b4d17ce8a247c6518a4b8a764ae7fee;hp=79e2ec3b8ba47c30822387cb02cb0b263afe7464;hpb=1ba43e8d0d271e4c3b4d84fb7f519c55329981ab;p=civicrm-core.git diff --git a/CRM/Admin/Page/AJAX.php b/CRM/Admin/Page/AJAX.php index 79e2ec3b8b..d47b9caf05 100644 --- a/CRM/Admin/Page/AJAX.php +++ b/CRM/Admin/Page/AJAX.php @@ -341,7 +341,7 @@ class CRM_Admin_Page_AJAX { * Used by jstree to incrementally load tags */ public static function getTagTree() { - $parent = CRM_Utils_Type::escape(CRM_Utils_Array::value('parent_id', $_GET, 0), 'Integer'); + $parent = CRM_Utils_Type::escape(($_GET['parent_id'] ?? 0), 'Integer'); $substring = CRM_Utils_Type::escape(CRM_Utils_Array::value('str', $_GET), 'String'); $result = []; @@ -380,7 +380,7 @@ class CRM_Admin_Page_AJAX { } } else { - $hasChildTags = empty($childTagIDs[$dao->id]) ? FALSE : TRUE; + $hasChildTags = !empty($childTagIDs[$dao->id]); $usedFor = (array) explode(',', $dao->used_for); $tag = [ 'id' => $dao->id,