X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSort.php;h=a18e106118a771db529daf88ec90f35a3e04c030;hb=6618a018a85af6394e1c1e5319ee70f86f43133a;hp=cef2fdcb717a4f5031c95c995865fa030fa19fcb;hpb=0dbe4aaa486eeccbcd060d5590347bff4b10fa47;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'], ]; }