From 65132d8a4ad2bcecd8358cd7fc27a4675ab7c76f Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 27 Sep 2023 09:41:41 +0900 Subject: [PATCH] Fix DB\ArrayIO access to unset pk_id --- www/lib/CoreLibs/DB/Extended/ArrayIO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/CoreLibs/DB/Extended/ArrayIO.php b/www/lib/CoreLibs/DB/Extended/ArrayIO.php index 7c2ed514..2754ec02 100644 --- a/www/lib/CoreLibs/DB/Extended/ArrayIO.php +++ b/www/lib/CoreLibs/DB/Extended/ArrayIO.php @@ -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