X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/42f6a958d08c9fbdd4bc05894986027f4f25b401..f351c6a2475050bcadfce28bdbe303eda9654059:/cookbooks/donate/templates/default/db-connect.inc.php.erb diff --git a/cookbooks/donate/templates/default/db-connect.inc.php.erb b/cookbooks/donate/templates/default/db-connect.inc.php.erb index c437acb5b..c4cea1f93 100644 --- a/cookbooks/donate/templates/default/db-connect.inc.php.erb +++ b/cookbooks/donate/templates/default/db-connect.inc.php.erb @@ -3,4 +3,6 @@ $_DB_H = new mysqli('localhost','donate','<%= @passwords['database'] %>','donate if ($_DB_H->connect_errno) { die('DB Connect Error: ' . $_DB_H->connect_errno); } +$_DB_H->report_mode = MYSQLI_REPORT_ERROR; +$_DB_H->query('set @@sql_mode = \'\''); $_DB_H->query('SET NAMES \'utf8\'');