From 14a642ab7825fb2049bd398db1d633a386850fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Serman=20=28fser=29?= Date: Tue, 1 Jul 2014 15:18:49 +0200 Subject: [PATCH] fixed "type" error for errno, and potential error on lastid() --- bureau/class/db_mysql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/db_mysql.php b/bureau/class/db_mysql.php index b8cd8a65..fcffa76c 100644 --- a/bureau/class/db_mysql.php +++ b/bureau/class/db_mysql.php @@ -28,7 +28,7 @@ class DB_Sql { private $num_rows; /* public: current error number and error text */ - private $Errno = 0; + private $Errno; private $Error; @@ -265,7 +265,7 @@ class DB_Sql { } function lastid() { - return $this->pdo_query->lastInsertId(); + return $this->pdo_instance->lastInsertId(); } /* public: sequence numbers */