Changeset 6239
- Timestamp:
- 07/31/08 15:05:47 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/defines.php
r6237 r6239 45 45 function DbConnect() 46 46 { 47 $options = array(); 47 48 if (DB_TYPE == "postgres") 48 49 { … … 70 71 $datasource = DB_TYPE.'://'.USER.':'.PASS.'@'.HOST.'/'.DBNAME; 71 72 } 72 if( $options)73 if(!empty($options)) 73 74 $db = DB::connect($datasource,$options); // attempt connection with options (sqlite3) 74 75 else
