"- dont accept less then one account-id plus replacement

- cat_owner -1 means global cat, not cat of group 1"
This commit is contained in:
Ralf Becker 2007-04-28 12:25:44 +00:00
parent 664f222868
commit c128b0a017

View File

@ -166,7 +166,7 @@ function do_change_account_id($args)
'egw_applications' => false,
'egw_app_sessions' => 'loginid',
'egw_async' => 'async_account_id',
'egw_categories' => 'cat_owner',
'egw_categories' => array(array('cat_owner','cat_owner > 0')), // -1 are global cats, not cats from group 1!
'egw_config' => false,
'egw_history_log' => 'history_owner',
'egw_hooks' => false,
@ -286,6 +286,8 @@ function do_change_account_id($args)
// VFS2 ToDo!!!
);
if (count($args) < 4) usage(); // 4 means at least user,pw,from1,to1
$ids2change = array();
for($n = 2; $n < count($args); $n += 2)
{