From: Marcin Haba Date: Mon, 23 Jul 2018 15:20:04 +0000 (+0200) Subject: baculum: Fix pool does not exist error on pool details page X-Git-Tag: Release-9.2.1~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37e4d3624fa4cd8830bb76d5a792c91439622ced;p=thirdparty%2Fbacula.git baculum: Fix pool does not exist error on pool details page --- diff --git a/gui/baculum/protected/Web/Pages/PoolView.php b/gui/baculum/protected/Web/Pages/PoolView.php index 9e78b7036d..bd28f96bb7 100644 --- a/gui/baculum/protected/Web/Pages/PoolView.php +++ b/gui/baculum/protected/Web/Pages/PoolView.php @@ -120,7 +120,7 @@ class PoolView extends BaculumWebPage { $recyclepool = '-'; if ($pool->recyclepoolid === $pool->scratchpoolid) { $recyclepool = $scratchpool; - } else { + } elseif ($pool->recyclepoolid > 0) { $result = $this->getModule('api')->get( array('pools', $pool->recyclepoolid), null, @@ -136,9 +136,9 @@ class PoolView extends BaculumWebPage { $nextpool = $scratchpool; } elseif ($pool->nextpoolid === $pool->recyclepoolid) { $nextpool = $recyclepool; - } else { + } elseif ($pool->nextpoolid > 0) { $result = $this->getModule('api')->get( - array('pools', $pool->recyclepoolid), + array('pools', $pool->nextpoolid), null, true, self::USE_CACHE