Bug fixes in ACL\Login and DB\IO\Extended

This commit is contained in:
Clemens Schwaighofer
2022-04-22 15:32:06 +09:00
parent d0e294ecf5
commit 43b51895f0
2 changed files with 6 additions and 5 deletions

View File

@@ -503,7 +503,7 @@ class ArrayIO extends \CoreLibs\DB\IO
// max id, falls INSERT
$q = 'SELECT MAX(' . $this->pk_name . ') + 1 AS pk_id FROM ' . $this->table_name;
if (is_array($res = $this->dbReturnRow($q))) {
$pk_id = $res['pkd_id'];
$pk_id = $res['pk_id'];
} else {
$pk_id = 1;
}