From 7a4790674385c6eb856d0b4715352daef696995a Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 7 Feb 2012 15:56:16 -0500 Subject: [PATCH] Fixed inheritance issue --- src/common/db_pdo.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/db_pdo.php b/src/common/db_pdo.php index 944f51b..d2a51f8 100644 --- a/src/common/db_pdo.php +++ b/src/common/db_pdo.php @@ -19,14 +19,17 @@ */ abstract class DB_PDO extends PDO { - protected $statement; + protected $statement, $manip; function __construct($dsn, $username=NULL, $password=NULL, $driver_options=array()) { parent::__construct($dsn, $username, $password, $driver_options); - $class = __CLASS__.'_manip'; - $this->manip = new $class; + if(__CLASS__ !== "DB_PDO") + { + $class = __CLASS__.'_manip'; + $this->manip = new $class; + } } // -------------------------------------------------------------------------