Bug fix in DB\ArrayIO for pk_id access

This commit is contained in:
Clemens Schwaighofer
2023-09-27 09:43:32 +09:00
parent 724031b944
commit 90550746ab

View File

@@ -198,7 +198,7 @@ class ArrayIO extends \CoreLibs\DB\IO
public function dbCheckPkSet(): bool
{
// if pk_id is set, overrule ...
if ($this->pk_id) {
if (!empty($this->pk_id)) {
$this->table_array[$this->pk_name]['value'] = $this->pk_id;
}
// if not set ... produce error