mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fix error exporting LDAP accounts to SQL: array_key_exits parameter #2 must be of type array, bool given
This commit is contained in:
parent
a924bf7dbc
commit
ad05cd493e
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user