Changeset 1882 for branches/2.0


Ignore:
Timestamp:
12/22/09 13:23:02 (14 years ago)
Author:
niltonneto
Message:

Ticket #857 - Correção do problema ao atualizar versão pelo setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/phpgwapi/setup/tables_update.inc.php

    r1672 r1882  
    16141614        function phpgwapi_upgrade1_0_0_003() 
    16151615        { 
    1616                 // removing the ACL entries of deleted accounts 
    1617                 $GLOBALS['phpgw_setup']->setup_account_object(); 
    1618                 if (($all_accounts = $GLOBALS['phpgw']->accounts->search(array('type'=>'both')))) 
    1619                 { 
    1620                         $all_accounts = array_keys($all_accounts); 
    1621                         $GLOBALS['phpgw_setup']->oProc->query("DELETE FROM phpgw_acl WHERE acl_account NOT IN (".implode(',',$all_accounts).")",__LINE__,__FILE__); 
    1622                         $GLOBALS['phpgw_setup']->oProc->query("DELETE FROM phpgw_acl WHERE acl_appname='phpgw_group' AND acl_location NOT IN ('".implode("','",$all_accounts)."')",__LINE__,__FILE__); 
    1623                 } 
    16241616                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.0.004'; 
    16251617                return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
Note: See TracChangeset for help on using the changeset viewer.