X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSort.php;h=a18e106118a771db529daf88ec90f35a3e04c030;hb=a7c143bd44e6a40fb5d4634ec61c9503bfd9be37;hp=cef2fdcb717a4f5031c95c995865fa030fa19fcb;hpb=bd4c91fa63ea1884bcb352aa2a27952f2a0862df;p=civicrm-core.git diff --git a/CRM/Utils/Sort.php b/CRM/Utils/Sort.php index cef2fdcb71..a18e106118 100644 --- a/CRM/Utils/Sort.php +++ b/CRM/Utils/Sort.php @@ -106,7 +106,7 @@ class CRM_Utils_Sort { foreach ($vars as $weight => $value) { $this->_vars[$weight] = [ 'name' => CRM_Utils_Type::validate($value['sort'], 'MysqlColumnNameOrAlias'), - 'direction' => CRM_Utils_Array::value('direction', $value), + 'direction' => $value['direction'] ?? NULL, 'title' => $value['name'], ]; }