mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 04:13:28 +01:00
Fix PHP8.0 error (TypeError): strlen(): Argument #1 ($string) must be of type string, array given
This commit is contained in:
parent
2812e35ec7
commit
17e25fa1e0
@ -632,7 +632,7 @@ class Base
|
|||||||
{
|
{
|
||||||
continue; // no need to write that (unset) column
|
continue; // no need to write that (unset) column
|
||||||
}
|
}
|
||||||
if ($this->table_def['fd'][$db_col]['type'] == 'varchar' &&
|
if ($this->table_def['fd'][$db_col]['type'] == 'varchar' && is_string($this->data[$col]) &&
|
||||||
strlen($this->data[$col]) > $this->table_def['fd'][$db_col]['precision'])
|
strlen($this->data[$col]) > $this->table_def['fd'][$db_col]['precision'])
|
||||||
{
|
{
|
||||||
// truncate the field to mamimum length, if upper layers didn't care
|
// truncate the field to mamimum length, if upper layers didn't care
|
||||||
|
Loading…
Reference in New Issue
Block a user