diff --git a/admin/inc/class.uiasyncservice.inc.php b/admin/inc/class.uiasyncservice.inc.php index 40a206fd8e..6cbdf38d11 100644 --- a/admin/inc/class.uiasyncservice.inc.php +++ b/admin/inc/class.uiasyncservice.inc.php @@ -59,7 +59,7 @@ class uiasyncservice { echo '
'.lang("You have no email address for your user set !!!")."
\n"; } - elseif (!$async->set_timer($times,'test','admin.uiasyncservice.test',$GLOBALS['egw_info']['user']['email'])) + elseif (!$async->set_timer($times,'test','admin.uiasyncservice.test',(array)$GLOBALS['egw_info']['user']['email'])) { echo ''.lang("Error setting timer, wrong syntax or maybe there's one already running !!!")."
\n"; } diff --git a/phpgwapi/inc/class.send.inc.php b/phpgwapi/inc/class.send.inc.php index 682469e9b2..8f4d38544e 100644 --- a/phpgwapi/inc/class.send.inc.php +++ b/phpgwapi/inc/class.send.inc.php @@ -213,14 +213,14 @@ { if ($$adr) { - if (preg_match_all('/"?(.+)"?<(.+)>,?/',$$adr,$matches)) + if (is_string($$adr) && preg_match_all('/"?(.+)"?<(.+)>,?/',$$adr,$matches)) { $names = $matches[1]; $addresses = $matches[2]; } else { - $addresses = explode(',',trim($$adr)); + $addresses = (is_string($$adr) ? explode(',',trim($$adr)) : explode(',',trim($$adr[0]))); $names = array(); } $method = 'Add'.($adr == 'to' ? 'Address' : $adr);