From c8c132add6c4b7762e40a8c609e7e6ea8faad412 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 15 Jan 2007 17:23:15 +0000 Subject: [PATCH] ebl cleanup do_update_media git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4001 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lib/Bweb.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index c178dc3a65..3c17b9375d 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -2868,28 +2868,23 @@ sub do_update_media $update .= " pool=$arg->{pool} " ; } - $arg->{volretention} ||= 0 ; - if ($arg->{volretention}) { + if (defined $arg->{volretention}) { $update .= " volretention=\"$arg->{volretention}\" " ; } - $arg->{voluseduration} ||= 0 ; - if ($arg->{voluseduration}) { + if (defined $arg->{voluseduration}) { $update .= " voluse=\"$arg->{voluseduration}\" " ; } - $arg->{maxvoljobs} ||= 0; - if ($arg->{maxvoljobs}) { + if (defined $arg->{maxvoljobs}) { $update .= " maxvoljobs=$arg->{maxvoljobs} " ; } - $arg->{maxvolfiles} ||= 0; - if ($arg->{maxvolfiles}) { + if (defined $arg->{maxvolfiles}) { $update .= " maxvolfiles=$arg->{maxvolfiles} " ; } - $arg->{maxvolbytes} ||= 0; - if ($arg->{maxvolbytes}) { + if (defined $arg->{maxvolbytes}) { $update .= " maxvolbytes=$arg->{maxvolbytes} " ; } -- 2.39.5