mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 06:19:09 +01:00
dont start testjob, if user has no email address set
This commit is contained in:
parent
8d3a622182
commit
3bd61c8067
@ -56,7 +56,11 @@ class uiasyncservice
|
|||||||
|
|
||||||
if ($_POST['test'])
|
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";
|
echo '<p><b>'.lang("Error setting timer, wrong syntax or maybe there's one already running !!!")."</b></p>\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user