Changeset 5915 for trunk/phpgwapi


Ignore:
Timestamp:
04/11/12 12:25:36 (12 years ago)
Author:
marcosw
Message:

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

Location:
trunk/phpgwapi/inc
Files:
2 edited

Legend:

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

    r5912 r5915  
    164164                        } 
    165165                        $response = $this->read_port(); 
    166                         if(!preg_match('/'.strtoupper($expected_response).'/',strtoupper($response))) 
     166                        if(!preg_match(strtoupper("/$expected_response/"),strtoupper($response))) 
    167167                        { 
    168168                                if(substr($expected_response,1,1) == '+') 
  • trunk/phpgwapi/inc/class.xml.inc.php

    r5912 r5915  
    27492749             
    27502750        // Check whether the first string starts with the second one. 
    2751         if ( preg_match('/'.$second.'/', $first) ) 
     2751        if ( preg_match("/$second/", $first) ) 
    27522752        { 
    27532753            // Return true. 
Note: See TracChangeset for help on using the changeset viewer.