Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Bugfix issue #534
Browse files Browse the repository at this point in the history
Stay PHP 5.3.3 compatible.

Fixes #534: Unable to use "Restore" function in bareos-webui

Signed-off-by: Frank Bergkemper <frank.bergkemper@dass-it.de>
  • Loading branch information
fbergkemper committed Oct 7, 2015
1 parent a9adcb2 commit 1e3dd10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/Restore/src/Restore/Controller/RestoreController.php
Expand Up @@ -46,7 +46,8 @@ public function indexAction()
$this->getRestoreParams();

if($this->restore_params['client'] == null) {
$this->restore_params['client'] = @array_pop($this->getClients(2))['name'];
$client = array_pop($this->getClients(2));
$this->restore_params['client'] = $client['name'];
}

if($this->restore_params['type'] == "client" && $this->restore_params['jobid'] == null) {
Expand Down

0 comments on commit 1e3dd10

Please sign in to comment.