fix: keeping compatibility with older versions

#353
This commit is contained in:
Martin Ambrus
2017-11-17 23:18:40 +01:00
parent 8f979deba9
commit bfc7a2b28a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class adm_DB {
var $connection;
function __construct(){
global $database;
$database = new MYSQLi_DB(SQL_SERVER.':'.SQL_PORT, SQL_USER, SQL_PASS, SQL_DB);
$database = new MYSQLi_DB(SQL_SERVER.':'.(defined('SQL_PORT') ? SQL_PORT : 3306), SQL_USER, SQL_PASS, SQL_DB);
$this->connection = $database->return_link();
}