Merge pull request #17732 from civicrm/5.27
[civicrm-core.git] / CRM / Contact / Page / AJAX.php
index 069aff30d9955b28091114929e1ff14d2f1ed7c1..4b91252858b3dd1877334767b67bf765abef44dd 100644 (file)
@@ -770,7 +770,7 @@ LIMIT {$offset}, {$rowCount}
   public static function getSearchOptionsFromRequest() {
     $searchParams = [];
     $searchData = $_REQUEST['search'] ?? NULL;
-    $searchData['value'] = CRM_Utils_Type::escape($searchData['value'], 'String');
+    $searchData['value'] = CRM_Utils_Type::escape($searchData['value'] ?? NULL, 'String');
     $selectorElements = [
       'is_selected',
       'is_selected_input',