From a53560a546ba65e73138a410f5024c4ecb5d3a32 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 22 Aug 2018 11:10:11 +0200 Subject: [PATCH] try fixing "Unsupported operand types" reported by Alexandros Probably cause by Policy app not being installed. --- admin/inc/class.admin_config.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/inc/class.admin_config.inc.php b/admin/inc/class.admin_config.inc.php index f7924da815..879ce3438f 100644 --- a/admin/inc/class.admin_config.inc.php +++ b/admin/inc/class.admin_config.inc.php @@ -127,7 +127,7 @@ class admin_config } $c = new Api\Config($config_appname); - $old = $c->read_repository(); + $old = (array)$c->read_repository(); if ($_content['cancel'] || ($_content['save'] || $_content['apply']) && $GLOBALS['egw']->acl->check('site_config_acce',2,'admin')) { Api\Framework::redirect_link('/admin/index.php?ajax=true'); @@ -139,7 +139,7 @@ class admin_config $_POST = array('newsettings' => &$_content['newsettings']); // Remove actual files (cleanup) of deselected urls from login_background_file - $this->remove_anon_images(array_diff($c->config_data['login_background_file'], $_content['newsettings']['login_background_file'])); + $this->remove_anon_images(array_diff((array)$c->config_data['login_background_file'], $_content['newsettings']['login_background_file'])); /* Load hook file with functions to validate each config (one/none/all) */ Api\Hooks::single(array( @@ -196,7 +196,7 @@ class admin_config if ($set) { $cmd = new admin_cmd_config($config_appname, $set, $old, - $_content['admin_cmd']+array('appname' => $_appname)); + (array)$_content['admin_cmd']+array('appname' => $_appname)); $msg = $cmd->run(); } else