Changeset 1738 for trunk/phpgwapi


Ignore:
Timestamp:
12/02/09 14:56:13 (14 years ago)
Author:
rodsouza
Message:

Ticket #491 - Mitigando situações que criam inundam o LOG.

File:
1 edited

Legend:

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

    r1280 r1738  
    202202                                                if ($this->Port) $Host .= ':'.$this->Port; 
    203203                                                break; 
     204                                } 
     205 
     206                                if ( ! isset( $GLOBALS[ 'phpgw' ] ) ) 
     207                                { 
     208                                        $GLOBALS[ 'phpgw' ] = new stdClass; 
     209                                        $GLOBALS[ 'phpgw' ]->ADOdb = NULL; 
    204210                                } 
    205211 
     
    226232                                                return 0;       // in case error-reporting = 'no' 
    227233                                        } 
    228                                         $connect = $GLOBALS['phpgw_info']['server']['db_persistent'] ? 'PConnect' : 'Connect'; 
     234                                        $connect = ( isset( $GLOBALS['phpgw_info']['server']['db_persistent'] ) && $GLOBALS['phpgw_info']['server']['db_persistent'] ) ? 'PConnect' : 'Connect'; 
    229235                                        if (!$this->Link_ID->$connect($Host, $User, $Password, $Database)) 
    230236                                        { 
Note: See TracChangeset for help on using the changeset viewer.