Fix DB\ArrayIO access to unset pk_id

This commit is contained in:
Clemens Schwaighofer
2023-09-27 09:41:41 +09:00
parent b2243cd06d
commit 65132d8a4a

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