fixed "type" error for errno, and potential error on lastid()

This commit is contained in:
François Serman (fser) 2014-07-01 15:18:49 +02:00
parent 3c4438895f
commit 14a642ab78
1 changed files with 2 additions and 2 deletions

View File

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