From 1111206f8dfa666d10789f7eeb4551a17e741d8a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 26 Dec 2014 05:47:06 +0000 Subject: [PATCH] * ajdust for bug #654. --- module/install/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/install/model.php b/module/install/model.php index 6edc954352..5934cfb4e6 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -286,6 +286,7 @@ class installModel extends model $dbh->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $dbh->exec("SET NAMES {$this->config->db->encoding}"); + if(isset($this->config->db->strictMode) and $this->config->db->strictMode == false) $dbh->exec("SET @@sql_mode= ''"); return $dbh; } catch (PDOException $exception)