From a0a2f702e23564182787f1c252c31c9fd42184f0 Mon Sep 17 00:00:00 2001 From: Sergey Tsalkov Date: Mon, 31 Mar 2014 01:50:10 -0700 Subject: [PATCH] bugfix: don't crash if nested transactions are enabled, and the first command issued is a start transaction --- db.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.class.php b/db.class.php index a04db26..6d29ae6 100644 --- a/db.class.php +++ b/db.class.php @@ -201,7 +201,7 @@ class MeekroDB { $this->success_handler = $handler; } - public function serverVersion() { return $this->server_info; } + public function serverVersion() { $this->get(); return $this->server_info; } public function transactionDepth() { return $this->nested_transactions_count; } public function insertId() { return $this->insert_id; } public function affectedRows() { return $this->affected_rows; }