diff --git a/admin/inc/class.uiasyncservice.inc.php b/admin/inc/class.uiasyncservice.inc.php index 4b101f41f8..0818bdaf60 100644 --- a/admin/inc/class.uiasyncservice.inc.php +++ b/admin/inc/class.uiasyncservice.inc.php @@ -56,7 +56,11 @@ class uiasyncservice if ($_POST['test']) { - if (!$async->set_timer($times,'test','admin.uiasyncservice.test',$GLOBALS['egw_info']['user']['email'])) + if (strpos($GLOBALS['egw_info']['user']['email'],'@') === false) + { + 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'])) { echo '

'.lang("Error setting timer, wrong syntax or maybe there's one already running !!!")."

\n"; }