]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/API/Pages/API/RestoreRun.php
baculum: API endpoints code refactor
[bacula/bacula] / gui / baculum / protected / API / Pages / API / RestoreRun.php
index 5a5c9837e40ebc9fda74f2203d1516ea6be46ba5..b01d138c3fc50b9481a405f9c722f51486f910ff 100644 (file)
@@ -114,10 +114,10 @@ class RestoreRun extends BaculumAPIServer {
                }
                $command[] = 'yes';
 
-               $restore = $this->getModule('bconsole')->bconsoleCommand($this->director, $command, $this->user);
+               $restore = $this->getModule('bconsole')->bconsoleCommand($this->director, $command);
                $this->removeTmpRestoreTable($rfile);
                $this->output = $restore->output;
-               $this->error = (integer)$restore->exitcode;
+               $this->error = $restore->exitcode;
        }
 
        private function removeTmpRestoreTable($tableName) {