Ignore:
Timestamp:
10/10/13 11:39:53 (11 years ago)
Author:
angelo
Message:

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/phpgwapi/inc/class.db.inc.php

    r8234 r8235  
    209209                                        $GLOBALS[ 'phpgw' ]->ADOdb = NULL; 
    210210                                } 
    211                                 if (!is_object($GLOBALS['phpgw']->ADOdb) ||     // we have no connection so far 
     211                                if (!isset($GLOBALS[ 'phpgw' ]->ADOdb) /*!is_object($GLOBALS['phpgw']->ADOdb)*/ ||      // we have no connection so far 
    212212                                        (isset($GLOBALS['phpgw']->db) && is_object($GLOBALS['phpgw']->db) &&    // we connect to a different db, then the global one 
    213213                                                ($this->Type != $GLOBALS['phpgw']->db->Type || 
     
    217217                                                $this->Port != $GLOBALS['phpgw']->db->Port))) 
    218218                                { 
    219                                         if (!is_object($GLOBALS['phpgw']->ADOdb))       // use the global object to store the connection 
     219                                        if (isset($GLOBALS[ 'phpgw' ]->ADOdb)/*!is_object($GLOBALS['phpgw']->ADOdb)*/)  // use the global object to store the connection 
    220220                                        { 
    221221                                                $this->Link_ID = &$GLOBALS['phpgw']->ADOdb; 
Note: See TracChangeset for help on using the changeset viewer.