Set the PDO error mode to throw warnings.
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 28 May 2013 01:47:33 +0000 (21:47 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 28 May 2013 13:59:26 +0000 (09:59 -0400)
admin/htaccess [new file with mode: 0644]
includes/init.php

diff --git a/admin/htaccess b/admin/htaccess
new file mode 100644 (file)
index 0000000..c877913
--- /dev/null
@@ -0,0 +1,5 @@
+# TODO(port): Move this to BUGDAR_ROOT.
+RewriteEngine on
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule (.*) index.php/$1 [QSA]
\ No newline at end of file
index 0bd673882c85144575d8fd279bd39216421bfd86..9627163d607006eebc9c8cccfc35df8bba4e364d 100755 (executable)
@@ -107,6 +107,8 @@ bugdar::$input = new \hoplite\http\Input(\hoplite\http\Input::TYPE_HTML);
 
 bugdar::$db = $db->dblink;
 
+bugdar::$db->SetAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_WARNING);
+
 // ###################################################################
 // send nocache
 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");