From b1e305e96deae1e807c297b2ad9410639058c795 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 15 Feb 2017 15:43:51 +0000 Subject: [PATCH] donate: do not throw error on mysqli warning --- cookbooks/donate/templates/default/db-connect.inc.php.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/donate/templates/default/db-connect.inc.php.erb b/cookbooks/donate/templates/default/db-connect.inc.php.erb index c437acb5b..302a21c9a 100644 --- a/cookbooks/donate/templates/default/db-connect.inc.php.erb +++ b/cookbooks/donate/templates/default/db-connect.inc.php.erb @@ -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\''); -- 2.39.5