mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 06:18:55 +01:00
Prevent "Parameter must be scalar" error when creating a calendar event - thanks @sbourget
This commit is contained in:
parent
c55beb9037
commit
408726b647
@ -367,7 +367,13 @@ class calendar_uiforms extends calendar_ui
|
||||
break;
|
||||
case 'participant':
|
||||
foreach($data as $participant)
|
||||
{ // email or rfc822 addresse (eg. "Ralf Becker <ralf@domain.com>")
|
||||
{
|
||||
if (is_null($participant))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// email or rfc822 addresse (eg. "Ralf Becker <ralf@domain.com>")
|
||||
$email = array();
|
||||
if(preg_match('/^(.*<)?([a-z0-9_.-]+@[a-z0-9_.-]{5,})>?$/i',$participant,$email))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user