dont start testjob, if user has no email address set

This commit is contained in:
Ralf Becker 2010-02-03 03:42:15 +00:00
parent 8d3a622182
commit 3bd61c8067

View File

@ -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 '<p><b>'.lang("You have no email address for your user set !!!")."</b></p>\n";
}
elseif (!$async->set_timer($times,'test','admin.uiasyncservice.test',$GLOBALS['egw_info']['user']['email']))
{
echo '<p><b>'.lang("Error setting timer, wrong syntax or maybe there's one already running !!!")."</b></p>\n";
}