fix error exporting LDAP accounts to SQL: array_key_exits parameter #2 must be of type array, bool given

This commit is contained in:
ralf 2023-01-25 19:12:51 +01:00
parent a924bf7dbc
commit ad05cd493e

View File

@ -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
{