diff --git a/core/database.class.php b/core/database.class.php index c42ce366..b17a8625 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -326,6 +326,7 @@ class Database { */ public function execute($query, $args=array()) { try { + _count_execs($this->db, $query, $args); $stmt = $this->db->prepare($query); if (!array_key_exists(0, $args)) { foreach($args as $name=>$value) { diff --git a/index.php b/index.php index 54194b10..9df65aeb 100644 --- a/index.php +++ b/index.php @@ -106,7 +106,6 @@ try { ctx_log_start("Connecting to DB"); // connect to the database $database = new Database(); - //$database->db->fnExecute = '_count_execs'; // FIXME: PDO equivalent $database->db->beginTransaction(); $config = new DatabaseConfig($database); ctx_log_endok();