Merge pull request #18950 from MegaphoneJon/event-44
[civicrm-core.git] / api / v3 / CaseContact.php
index cc535fda90c4fb983c6a22366dad22ed01132c72..1139f986143a1d1940b267b0af5f2f10da75156d 100644 (file)
@@ -82,7 +82,7 @@ function _civicrm_api3_case_contact_getlist_output($result, $request, $entity, $
         $row['case_id.subject'],
       ];
       if (!empty($request['image_field'])) {
-        $data['image'] = isset($row[$request['image_field']]) ? $row[$request['image_field']] : '';
+        $data['image'] = $row[$request['image_field']] ?? '';
       }
       $output[] = $data;
     }