From: Marcin Haba Date: Tue, 23 Apr 2019 04:05:57 +0000 (+0200) Subject: baculum: Fix restore wizard error when no fileset available for normal user with... X-Git-Tag: Release-9.4.3~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87ad8b293c609615832a9e84cfe1776ea7fc4fb;p=thirdparty%2Fbacula.git baculum: Fix restore wizard error when no fileset available for normal user with limited access --- diff --git a/gui/baculum/protected/API/Pages/API/FileSets.php b/gui/baculum/protected/API/Pages/API/FileSets.php index 0c4399f3e..ad73c6ccb 100644 --- a/gui/baculum/protected/API/Pages/API/FileSets.php +++ b/gui/baculum/protected/API/Pages/API/FileSets.php @@ -31,7 +31,7 @@ class FileSets extends BaculumAPIServer { ); if ($result->exitcode === 0) { array_shift($result->output); - if (is_array($filesets) && count($filesets) > 0) { + if (is_array($filesets)) { $fs = array(); for ($i = 0; $i < count($filesets); $i++) { if(in_array($filesets[$i]->fileset, $result->output)) {