quick update to sql lib

This commit is contained in:
flash 2015-04-24 17:59:56 +00:00
parent de1a09cf1f
commit 3229dc1108

View file

@ -71,7 +71,7 @@ class Database {
try { try {
// Connect to SQL server using PDO // Connect to SQL server using PDO
self::$sql = new PDO($DSN, $dbUname, $dbPword); self::$sql = new PDO($DSN, $dbUname, $dbPword, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING));
} catch(PDOException $e) { } catch(PDOException $e) {
// Catch connection errors // Catch connection errors
trigger_error('SQL Driver: '. $e->getMessage(), E_USER_ERROR); trigger_error('SQL Driver: '. $e->getMessage(), E_USER_ERROR);