diff --git a/admin/inc/class.uiasyncservice.inc.php b/admin/inc/class.uiasyncservice.inc.php index 3527fe4160..242965956c 100644 --- a/admin/inc/class.uiasyncservice.inc.php +++ b/admin/inc/class.uiasyncservice.inc.php @@ -76,12 +76,10 @@ if ($_POST['test']) { - $prefs = $GLOBALS['phpgw']->preferences->create_email_preferences(); - if (!$async->set_timer($times,'test','admin.uiasyncservice.test',$prefs['email']['address'])) + if (!$async->set_timer($times,'test','admin.uiasyncservice.test',$GLOBALS['phpgw_info']['user']['email'])) { echo '

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

\n"; } - unset($prefs); } if ($_POST['cancel']) {