mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:39 +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;
|
break;
|
||||||
case 'participant':
|
case 'participant':
|
||||||
foreach($data as $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();
|
$email = array();
|
||||||
if(preg_match('/^(.*<)?([a-z0-9_.-]+@[a-z0-9_.-]{5,})>?$/i',$participant,$email))
|
if(preg_match('/^(.*<)?([a-z0-9_.-]+@[a-z0-9_.-]{5,})>?$/i',$participant,$email))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user