diff --git a/CRM/Case/Export/Form/Map.php b/CRM/Case/Export/Form/Map.php deleted file mode 100644 index 7af90c3bf..000000000 --- a/CRM/Case/Export/Form/Map.php +++ /dev/null @@ -1,11 +0,0 @@ - $resultMetadata, 'params' => $params, 'toReturn' => $toReturn, - 'sql' => $sql - ) = CaseDetailsQuery::get($params); + 'sql' => $sql, + ] = CaseDetailsQuery::get($params); // Call the case api. $result = civicrm_api3_case_get(['sequential' => 0] + $params, $sql); - if (!empty($result['values'])) { + if (!empty($result['values']) && is_array($result['values'])) { $ids = array_keys($result['values']); // Remove legacy cruft.