X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdb%2Fconnect_db_mysql.inc;h=f6417e4547fd03ea117a27893aeb0beb2543652c;hb=f2343f51b0ed0d9abd2ec98b64f202beb9716d37;hp=622745ce7ab166a8056928d7fd0c55aacc205e19;hpb=a721b65478fd2a264b470e1265e69cf829031e7a;p=fa-stable.git diff --git a/includes/db/connect_db_mysql.inc b/includes/db/connect_db_mysql.inc index 622745ce..f6417e45 100644 --- a/includes/db/connect_db_mysql.inc +++ b/includes/db/connect_db_mysql.inc @@ -14,7 +14,7 @@ define('SQL_MODE', ''); // STRICT_ALL_TABLES,NO_ZERO_IN_DATE ? function set_global_connection($company=-1) { - global $db, $path_to_root, $db_connections; + global $db, $path_to_root, $db_connections, $SysPrefs; include ($path_to_root . "/config_db.php"); if ($company == -1) @@ -35,6 +35,7 @@ function set_global_connection($company=-1) ///// We are, however, investigating the existing code to be compatible in the future. db_query("SET sql_mode = '".SQL_MODE."'"); ///// + $SysPrefs->refresh(); return $db; }