@@ -69,22 +69,22 @@ private function do_connect() {
6969 global $ conf ;
7070
7171 if ($ this ->_iConnId ) return true ;
72- $ this ->dbHost = $ conf ['mysql ' ]['port ' ];
73- $ this ->dbPort = $ conf [$ prefix . ' db_port ' ];
72+ $ this ->dbHost = $ conf ['mysql ' ]['host ' ];
73+ $ this ->dbPort = $ conf [' mysql ' ][ ' port ' ];
7474 $ this ->dbName = false ;//$conf["mysql"]["database"];
7575 $ this ->dbUser = $ conf ["mysql " ]["admin_user " ];
7676 $ this ->dbPass = $ conf ["mysql " ]["admin_password " ];
7777 $ this ->dbCharset = $ conf ["mysql " ]["charset " ];
7878 $ this ->dbNewLink = false ;
7979 $ this ->dbClientFlags = null ;
8080
81- $ this ->_iConnId = mysqli_connect ($ this ->dbHost , $ this ->dbUser , $ this ->dbPass , (int )$ this ->dbPort );
81+ $ this ->_iConnId = mysqli_connect ($ this ->dbHost , $ this ->dbUser , $ this ->dbPass , '' , (int )$ this ->dbPort );
8282 $ try = 0 ;
8383 while ((!is_object ($ this ->_iConnId ) || mysqli_connect_error ()) && $ try < 5 ) {
8484 if ($ try > 0 ) sleep (1 );
8585
8686 $ try ++;
87- $ this ->_iConnId = mysqli_connect ($ this ->dbHost , $ this ->dbUser , $ this ->dbPass , (int )$ this ->dbPort );
87+ $ this ->_iConnId = mysqli_connect ($ this ->dbHost , $ this ->dbUser , $ this ->dbPass , '' , (int )$ this ->dbPort );
8888 }
8989
9090 if (!is_object ($ this ->_iConnId ) || mysqli_connect_error ()) {
@@ -204,7 +204,7 @@ private function _query($sQuery = '') {
204204 $ try ++;
205205 $ ok = mysqli_ping ($ this ->_iConnId );
206206 if (!$ ok ) {
207- if (!mysqli_connect ($ this ->dbHost , $ this ->dbUser , $ this ->dbPass , $ this ->dbName , (int )$ this ->dbPort )) {
207+ if (!mysqli_connect ($ this ->dbHost , $ this ->dbUser , $ this ->dbPass , $ this ->dbName , '' , (int )$ this ->dbPort )) {
208208 if ($ this ->errorNumber == '111 ' ) {
209209 // server is not available
210210 if ($ try > 9 ) {
0 commit comments