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 */