[NFC] minor form cleanup.
[civicrm-core.git] / CRM / Utils / Array.php
index c6eaec21998762cf690f66129d4d9568623d5172..14563ccabe757d15bf3f1d535290189330795416 100644 (file)
@@ -915,7 +915,7 @@ class CRM_Utils_Array {
     foreach ($matrix as $pos => $oldRow) {
       $newRow = [];
       foreach ($columns as $column) {
-        $newRow[$column] = CRM_Utils_Array::value($column, $oldRow);
+        $newRow[$column] = $oldRow[$column] ?? NULL;
       }
       $newRows[$pos] = $newRow;
     }