From e7259612f1ef776b3b9a2ab27b9e7b6a30b740f9 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 25 Jan 2023 19:12:51 +0100 Subject: [PATCH] fix error exporting LDAP accounts to SQL: array_key_exits parameter #2 must be of type array, bool given --- api/src/Storage/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Storage/Base.php b/api/src/Storage/Base.php index 812251f162..2177471bbf 100644 --- a/api/src/Storage/Base.php +++ b/api/src/Storage/Base.php @@ -626,7 +626,7 @@ class Base { if (!$this->autoinc_id || $db_col != $this->autoinc_id) // not write auto-inc-id { - if (!array_key_exists($col,$this->data) && // handling of unset columns in $this->data + if (!array_key_exists($col,$this->data ?: []) && // handling of unset columns in $this->data (isset($this->table_def['fd'][$db_col]['default']) || // we have a default value !isset($this->table_def['fd'][$db_col]['nullable']) || $this->table_def['fd'][$db_col]['nullable'])) // column is nullable {