mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix argument #1 ($address) must be of type string, null given
This commit is contained in:
parent
8fa65f13f5
commit
0894a4175d
@ -2344,12 +2344,15 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrive contact info from a given address
|
||||
* @param $address
|
||||
* @return mixed
|
||||
* Retrieve contact info from a given address
|
||||
*
|
||||
* @param string|null $address
|
||||
* @return array
|
||||
*/
|
||||
static function getContactFromAddress(string $address)
|
||||
static function getContactFromAddress($address)
|
||||
{
|
||||
if (empty($address)) return [];
|
||||
|
||||
$email = Mail::stripRFC822Addresses([$address]);
|
||||
|
||||
return $GLOBALS['egw']->contacts->search(
|
||||
|
Loading…
Reference in New Issue
Block a user