From cadf2e9af44ad6cba603d003fe7e4c3d0aa47ea7 Mon Sep 17 00:00:00 2001 From: The Kabal Date: Mon, 13 Apr 2020 22:00:45 -0400 Subject: [PATCH] Reverting back to a simpler version that works for now --- classes/TkiPDO.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/TkiPDO.php b/classes/TkiPDO.php index fc473e882..25e6e8655 100644 --- a/classes/TkiPDO.php +++ b/classes/TkiPDO.php @@ -24,7 +24,7 @@ class TkiPDO extends \PDO { /** @var string|null **/ - protected $table_prefix; + public $table_prefix; public function __construct( string $dsn, @@ -38,7 +38,7 @@ public function __construct( parent::__construct($dsn, $user, $password, $driver_options); } - public function exec($statement): int + public function exec($statement) { $statement = $this->tablePrefix($statement); $rows_affected = parent::exec($statement); @@ -52,7 +52,8 @@ public function prepare($statement, $driver_options = array()): \PDOStatement return $replaced_statement; } - public function query(string $statement): \PDOStatement + + public function query(string $statement) { $statement = $this->tablePrefix($statement); $args = func_get_args();