From fcd8cce29304ad0543b6a8c75da3c3e87f1a1184 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 27 May 2015 01:09:58 -0400 Subject: [PATCH] Use ERRMODE_EXCEPTION for PDO. --- includes/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/init.php b/includes/init.php index aa31eaa..5a4f455 100644 --- a/includes/init.php +++ b/includes/init.php @@ -91,7 +91,7 @@ unset($database, $servername, $username, $password); $bugsys->load('db_mysql_pdo', 'db', true); $db->connect(Bugdar::$db); -Bugdar::$db->SetAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_WARNING); +Bugdar::$db->SetAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); Bugdar::$db->SetAttribute(\PDO::ATTR_EMULATE_PREPARES, FALSE); Bugdar::$db->SetAttribute(\PDO::ATTR_STRINGIFY_FETCHES, FALSE); -- 2.43.5