From: Marcin Haba Date: Sun, 1 Mar 2020 16:15:44 +0000 (+0100) Subject: baculum: Tweak set PUT request parameters as optional X-Git-Tag: Release-9.6.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5483a07624ab055d0fec6184c4bdff54d42ec2e;p=thirdparty%2Fbacula.git baculum: Tweak set PUT request parameters as optional --- diff --git a/gui/baculum/protected/Web/Class/BaculumAPIClient.php b/gui/baculum/protected/Web/Class/BaculumAPIClient.php index e4325334d..bddde48da 100644 --- a/gui/baculum/protected/Web/Class/BaculumAPIClient.php +++ b/gui/baculum/protected/Web/Class/BaculumAPIClient.php @@ -334,7 +334,7 @@ class BaculumAPIClient extends WebModule { * @param bool $show_error if true then it shows error as HTML error page * @return object stdClass with request result as two properties: 'output' and 'error' */ - public function set(array $params, array $options, $host = null, $show_error = true) { + public function set(array $params, array $options = array(), $host = null, $show_error = true) { if (is_null($host)) { if (isset($_SESSION['api_host'])) { $host = $_SESSION['api_host'];