Skip to content

Commit c663ebf

Browse files
committed
Search records undefined index issue fix
1 parent dd3ed7c commit c663ebf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/crm/api/handler/MassEntityAPIHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,9 @@ public function searchRecords($param_map,$type,$search_value)
312312
try {
313313
$this->urlPath = $this->module->getAPIName() . "/search";
314314
$this->requestMethod = APIConstants::REQUEST_METHOD_GET;
315-
316315
$exclusion_array = ["word","phone","email","criteria"];
317316
foreach($exclusion_array as $exclusion){
318-
if($param_map[$exclusion]!==null){
317+
if(array_key_exists($exclusion, $param_map)){
319318
unset($param_map[$exclusion]);
320319
}
321320
}

0 commit comments

Comments
 (0)