]> git.openstreetmap.org Git - chef.git/commitdiff
donate: do not throw error on mysqli warning
authorGrant Slater <git@firefishy.com>
Wed, 15 Feb 2017 15:43:51 +0000 (15:43 +0000)
committerGrant Slater <git@firefishy.com>
Wed, 15 Feb 2017 15:46:40 +0000 (15:46 +0000)
cookbooks/donate/templates/default/db-connect.inc.php.erb

index c437acb5b928a2bda83acbb9aeb646301a7b686d..302a21c9ae1e73b90e7e95e00cc4fc16968bfe56 100644 (file)
@@ -3,4 +3,5 @@ $_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_ALL ^ MYSQLI_REPORT_STRICT;
 $_DB_H->query('SET NAMES \'utf8\'');