Ignore:
Timestamp:
12/21/11 18:42:14 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2398 - Compatibilizando codigo do Expresso, em geral, com PHP >= 5.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.sessions.inc.php

    r5141 r5281  
    11771177                                while ($i < count($a)) 
    11781178                                { 
    1179                                         $b = split('=', $a[$i],2); 
     1179                                        $b = preg_split('/=/', $a[$i],2); 
    11801180                                        // Check if this value doesn't already exist in new_extravars 
    11811181                                        if(array_key_exists($b[0], $new_extravars)) 
    11821182                                        { 
    11831183                                                // print "Debug::Error !!! " . $b[0] . " ($i) already exists<br>"; 
    1184                                                 if( eregi("\[\]", $b[0]) ) 
     1184                                                if( preg_match('/\[\]/i', $b[0]) ) 
    11851185                                                { 
    11861186                                                        $b[0] = eregi_replace("\[\]", "[$i]", $b[0]); 
Note: See TracChangeset for help on using the changeset viewer.