]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl bugfix
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 19 Sep 2006 17:08:30 +0000 (17:08 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 19 Sep 2006 17:08:30 +0000 (17:08 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3484 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bweb.pm

index 7891371ad4480baefd0df4cf5cc8576af9395f0b..d5a2af7fe8db836e83facd040e9fc028d53888ed 100644 (file)
@@ -2281,7 +2281,7 @@ sub do_update_media
            $update .= " Slot=0, ";
        }
     } else {
-       $update = " Slot=0, InChanger=0, ";
+       $update .= " Slot=0, InChanger=0, ";
     }
 
     my $pool = CGI::param('pool') || '';
@@ -2622,10 +2622,7 @@ WHERE Media.VolumeName IN ($arg->{jmedias})
 
     foreach my $vol (values %$all) {
        my $a = $self->ach_get($vol->{location});
-       unless ($a) {
-           $self->error("Can't find autochanger $vol->{location}");
-           next;
-       }
+       next unless ($a) ;
 
        unless ($a->{have_status}) {
            $a->status();