mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-04 06:31:02 +02:00
fix exception when trying to store a DateTime
This commit is contained in:
@ -640,7 +640,8 @@ class Base
|
||||
}
|
||||
else
|
||||
{
|
||||
$data[$db_col] = (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];
|
||||
$data[$db_col] = !is_a($this->data[$col], 'DateTime') && (string)$this->data[$col] === '' &&
|
||||
$this->empty_on_write == 'NULL' ? null : $this->data[$col];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user