diff --git a/src/DBManager.php b/src/DBManager.php index 6404fd4..2d7245b 100644 --- a/src/DBManager.php +++ b/src/DBManager.php @@ -72,10 +72,10 @@ public function connect($driver='mysql', $host='localhost', $username='root', $p { $dsn = "{$driver}:host={$host};dbname={$database};port={$port}"; - error_interceptor(1); + $this->error_interceptor(1); $this->connection = new PDO($dsn, $username, $password, $pdo_options); $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - error_interceptor(0); + $this->error_interceptor(0); return $this->connection; }