Ignore:
Timestamp:
04/12/12 15:18:08 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reports/inc/class.uireports_usersgroups.inc.php

    r5291 r5934  
    6666 
    6767                        $grouplist = trim($_POST[setor]); 
    68                         $grouplist = trim(ereg_replace("-","",$grouplist)); 
     68                        $grouplist = trim(preg_replace('/-/','',$grouplist)); 
    6969 
    7070                        $setordn = trim($_POST[setordn]); 
     
    189189                        // Save query 
    190190                        $varorganizacao = explode(",",$contextsdn); 
    191                         $varorganizacao_nome = trim(strtoupper(ereg_replace("ou=","",$varorganizacao[0]))); 
    192                         $varorganizacao_nome = trim(strtoupper(ereg_replace("DC=","",$varorganizacao_nome))); 
     191                        $varorganizacao_nome = trim(strtoupper(preg_replace('/ou=/','',$varorganizacao[0]))); 
     192                        $varorganizacao_nome = trim(strtoupper(preg_replace('/DC=/','',$varorganizacao_nome))); 
    193193                        $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 
    194194 
     
    232232                                                if ( trim(strtoupper($varorganizacao_nome)) !=  trim(strtoupper($sector))) 
    233233                                                { 
    234                                                         $sectorok = trim(strtoupper(ereg_replace("dc=","",$sector))); 
    235                                                         $sectorok = trim(strtoupper(ereg_replace("dc=","",$sectorok))); 
     234                                                        $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sector))); 
     235                                                        $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sectorok))); 
    236236                                                        $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 
    237237                                                } 
     
    298298                { 
    299299                        $grouplist = trim($_POST[setor]); 
    300                         $grouplist = trim(ereg_replace("-","",$grouplist)); 
     300                        $grouplist = trim(preg_replace('/-/','',$grouplist)); 
    301301                        $organizacao = trim($_POST[organizacao]); 
    302302                        $setordn = trim($_POST[setordn]); 
Note: See TracChangeset for help on using the changeset viewer.