]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Tweak set PUT request parameters as optional
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 1 Mar 2020 16:15:44 +0000 (17:15 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 1 Mar 2020 17:09:46 +0000 (18:09 +0100)
gui/baculum/protected/Web/Class/BaculumAPIClient.php

index e4325334d1a306d4f1d4c8d8b3178735a13ba6d0..bddde48da8b43d4c12700f5267649630686bf17f 100644 (file)
@@ -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'];