Changeset 5934 for trunk/reports/inc/class.uireports_usersgroups.inc.php
- Timestamp:
- 04/12/12 15:18:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reports/inc/class.uireports_usersgroups.inc.php
r5291 r5934 66 66 67 67 $grouplist = trim($_POST[setor]); 68 $grouplist = trim( ereg_replace("-","",$grouplist));68 $grouplist = trim(preg_replace('/-/','',$grouplist)); 69 69 70 70 $setordn = trim($_POST[setordn]); … … 189 189 // Save query 190 190 $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))); 193 193 $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 194 194 … … 232 232 if ( trim(strtoupper($varorganizacao_nome)) != trim(strtoupper($sector))) 233 233 { 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))); 236 236 $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 237 237 } … … 298 298 { 299 299 $grouplist = trim($_POST[setor]); 300 $grouplist = trim( ereg_replace("-","",$grouplist));300 $grouplist = trim(preg_replace('/-/','',$grouplist)); 301 301 $organizacao = trim($_POST[organizacao]); 302 302 $setordn = trim($_POST[setordn]);
Note: See TracChangeset
for help on using the changeset viewer.