Changeset 1738 for trunk/phpgwapi/inc
- Timestamp:
- 12/02/09 14:56:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.db.inc.php
r1280 r1738 202 202 if ($this->Port) $Host .= ':'.$this->Port; 203 203 break; 204 } 205 206 if ( ! isset( $GLOBALS[ 'phpgw' ] ) ) 207 { 208 $GLOBALS[ 'phpgw' ] = new stdClass; 209 $GLOBALS[ 'phpgw' ]->ADOdb = NULL; 204 210 } 205 211 … … 226 232 return 0; // in case error-reporting = 'no' 227 233 } 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'; 229 235 if (!$this->Link_ID->$connect($Host, $User, $Password, $Database)) 230 236 {
Note: See TracChangeset
for help on using the changeset viewer.