forked from extern/egroupware
fix PHP 8.0 Error: Illegal string offset 'string'
This commit is contained in:
parent
3b08a5979a
commit
a75d42eb8f
@ -178,10 +178,12 @@ class importexport_definition implements importexport_iface_egw_record {
|
||||
*
|
||||
* @param array $options
|
||||
*/
|
||||
private function set_options(array $_plugin_options) {
|
||||
private function set_options(array $_plugin_options)
|
||||
{
|
||||
// Check conditions
|
||||
foreach ( (Array)$_plugin_options['conditions'] as $key => $condition ) {
|
||||
if(!$condition['string'] && array_key_exists($key, $_plugin_options['conditions']))
|
||||
foreach ((array)$_plugin_options['conditions'] as $key => $condition)
|
||||
{
|
||||
if (is_array($condition) && empty($condition['string']) && array_key_exists($key, $_plugin_options['conditions']))
|
||||
{
|
||||
unset($_plugin_options['conditions'][$key]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user