diff options
author | friendica <info@friendica.com> | 2013-05-15 22:27:35 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-15 22:27:35 -0700 |
commit | d20a0cb6abe92e05f4387a6b3ad504b422275fb1 (patch) | |
tree | 386e650aa46efd8d60885b3d6e9083727080adc4 /include/dba/dba_mysqli.php | |
parent | b00c900fa2d999657b17caf577acea5ab772dec1 (diff) | |
download | volse-hubzilla-d20a0cb6abe92e05f4387a6b3ad504b422275fb1.tar.gz volse-hubzilla-d20a0cb6abe92e05f4387a6b3ad504b422275fb1.tar.bz2 volse-hubzilla-d20a0cb6abe92e05f4387a6b3ad504b422275fb1.zip |
fix intltext template driver
Diffstat (limited to 'include/dba/dba_mysqli.php')
-rwxr-xr-x | include/dba/dba_mysqli.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dba/dba_mysqli.php b/include/dba/dba_mysqli.php index 9cb60cb8c..f1a50cc3f 100755 --- a/include/dba/dba_mysqli.php +++ b/include/dba/dba_mysqli.php @@ -5,13 +5,18 @@ require_once('include/dba/dba_driver.php'); class dba_mysqli extends dba_driver { function connect($server, $port, $user,$pass,$db) { - $this->db = new mysqli($server,$user,$pass,$db, $port); + if($port) + $this->db = new mysqli($server,$user,$pass,$db, $port); + else + $this->db = new mysqli($server,$user,$pass,$db); + if(! mysqli_connect_errno()) { $this->connected = true; } if($this->connected) { return true; } + $this->error = $this->db->connect_error; return false; } |