mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 20:04:30 +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
07d6488593
commit
e7259612f1
@ -626,7 +626,7 @@ class Base
|
|||||||
{
|
{
|
||||||
if (!$this->autoinc_id || $db_col != $this->autoinc_id) // not write auto-inc-id
|
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]['default']) || // we have a default value
|
||||||
!isset($this->table_def['fd'][$db_col]['nullable']) || $this->table_def['fd'][$db_col]['nullable'])) // column is nullable
|
!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