fix warning

This commit is contained in:
Ralf Becker 2017-10-21 12:29:46 +02:00
parent c88e6e0237
commit c3ae6388ef

View File

@ -87,7 +87,7 @@ class admin_config
case 'phpgwapi':
case '':
/* This keeps the admin from getting into what is a setup-only config */
Api\Framework::redirect_link('/admin/index.php');
Api\Framework::redirect_link('/admin/index.php?ajax=true');
break;
default:
$appname = $_appname;
@ -110,7 +110,7 @@ class admin_config
/* Load hook file with functions to validate each config (one/none/all) */
Api\Hooks::single(array(
'location' => 'config_validate',
)+$_content['newsettings'], $appname);
)+(array)$_content['newsettings'], $appname);
foreach($_content['newsettings'] as $key => $config)
{