From 507d5cc80adc4eddc9fa3394c9119e3f6c30beee Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 5 Aug 2019 14:33:17 +0200 Subject: [PATCH] fix phrase "config" --- admin/inc/class.admin_cmd.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/inc/class.admin_cmd.inc.php b/admin/inc/class.admin_cmd.inc.php index c5c9f61db6..b95b98c965 100644 --- a/admin/inc/class.admin_cmd.inc.php +++ b/admin/inc/class.admin_cmd.inc.php @@ -1126,14 +1126,14 @@ abstract class admin_cmd // instanciate single periodic execution object $single = $cmd->as_array(); $single['parent'] = $single['id']; - $single = array_diff_key($single, array_flip(array( + $args = array_diff_key($single, array_flip(array( 'id','uid', 'created','modified','modifier', 'async_job_id','rrule','scheduled', 'status', 'set', 'old','value','result' ))); - $periodic = admin_cmd::instanciate($single); + $periodic = admin_cmd::instanciate($args); try { $value = $periodic->run(null, false); @@ -1207,7 +1207,7 @@ abstract class admin_cmd } elseif (!$data['remote_hash'] && !($data['install_id'] && $data['config_passwd'])) { - throw new Api\Exception\WrongUserinput(lang('Either Install ID AND Api\Config password needed OR the remote hash!')); + throw new Api\Exception\WrongUserinput(lang('Either Install ID AND config password needed OR the remote hash!')); } //_debug_array($data); admin_cmd::$remote->init($data);