You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -31,8 +31,8 @@ function sqlConnect($login,$pass,$dbase,$host,$port = '3306')
$GLOBALS['dbh'] = $database->_connectionID;
//set UTF8 encoding if selected in globals.php
// log an error if flag is not set
if (!isset($GLOBALS['use_set_names_utf8'])) error_log("OpenEMR ERROR: UTF-8 encoding flag from openemr globals.php file has been lost in transit!", 0);
if ($GLOBALS['use_set_names_utf8']) mysql_query("SET NAMES 'utf8'", $GLOBALS['dbh']);
if (!isset($utf8_flag)) error_log("OpenEMR ERROR: UTF-8 encoding flag from openemr globals.php file has been lost in transit!", 0);
if ($utf8_flag) mysql_query("SET NAMES 'utf8'", $GLOBALS['dbh']);