mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix explode(): Argument #2 ($string) must be of type string, array given
This commit is contained in:
parent
e4acb0eac1
commit
c48e2dccf1
@ -146,9 +146,11 @@ class Customfields extends Transformer
|
|||||||
$customfields = $this->attrs['customfields'];
|
$customfields = $this->attrs['customfields'];
|
||||||
}
|
}
|
||||||
// Filter fields
|
// Filter fields
|
||||||
|
$field_filters = $negate_fields = [];
|
||||||
if (!empty($this->attrs['fields']))
|
if (!empty($this->attrs['fields']))
|
||||||
{
|
{
|
||||||
$fields_name = explode(',', $this->attrs['fields']);
|
$fields_name = is_array($this->attrs['fields']) ? $this->attrs['fields'] :
|
||||||
|
explode(',', $this->attrs['fields']);
|
||||||
foreach($fields_name as &$f)
|
foreach($fields_name as &$f)
|
||||||
{
|
{
|
||||||
if ($f[0] == "!")
|
if ($f[0] == "!")
|
||||||
|
Loading…
Reference in New Issue
Block a user