]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix run job again button
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 29 Dec 2015 23:00:02 +0000 (00:00 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 29 Dec 2015 23:00:02 +0000 (00:00 +0100)
gui/baculum/protected/Portlets/JobConfiguration.php

index 2a852a61d3ded2682d4b97c0ba2f6229e02d9bb8..b883360af8475e9e9aac79cc382fd336898e2237 100644 (file)
@@ -183,11 +183,11 @@ class JobConfiguration extends Portlets {
                        $params['fileset'] = $this->getResourceName('fileset', $jobshow);
                        $params['clientid'] = $jobdata->clientid;
                        $storage = $this->getResourceName('storage', $jobshow);
-                       if (is_object($storage)) {
+                       if (!is_null($storage)) {
                                $params['storageid'] = $this->getStorageByName($storage)->storageid;
                        }
                        $pool = $this->getResourceName('pool', $jobshow);
-                       if (is_object($pool)) {
+                       if (!is_null($pool)) {
                                $params['poolid'] = $this->getPoolByName($pool)->poolid;
                        }
                } else {