From c1568b2b9a57d9b093d9fb732336f022e9417132 Mon Sep 17 00:00:00 2001 From: Lee Keitel Date: Sat, 22 Aug 2015 07:55:26 -0500 Subject: [PATCH] Fixed PDO namespace bug --- app/install/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/install/install.php b/app/install/install.php index 4ff93ae..af9a00f 100644 --- a/app/install/install.php +++ b/app/install/install.php @@ -52,8 +52,8 @@ break; } - $conn = new PDO($db_connect, $config['db']['username'], $config['db']['password']); - $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + $conn = new \PDO($db_connect, $config['db']['username'], $config['db']['password']); + $conn->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); $sql = file_get_contents(__DIR__."/base_{$config['db']['type']}_db.sql");