fix "Account not found! acc_id=new" exception when creating an SMTP only account via right-click on user in Admin app

This commit is contained in:
Ralf Becker 2014-10-28 10:18:46 +00:00
parent b782c066e3
commit ffbd475f35

View File

@ -1237,7 +1237,7 @@ class emailadmin_wizard
$readonlys['button[multiple]'] = true;
}
// when called by admin for existing accounts, display further administrative actions
if ($content['called_for'] && $content['acc_id'])
if ($content['called_for'] && $content['acc_id'] > 0)
{
$admin_actions = array();
foreach($GLOBALS['egw']->hooks->process(array(