From 68e336bfbe202215e1a2f20606cad826633d5336 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 21 Oct 2008 12:03:02 +0000 Subject: [PATCH] ebl Fix modification of new default_age option git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7862 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lib/Bweb.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 6da1b61378..76dd86408f 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -234,7 +234,7 @@ our %k_re = ( dbi => qr/^(dbi:(Pg|mysql):(?:\w+=[\w\d\.-]+;?)+)$/i, display_log_time => qr!^(on)?$!, enable_security => qr/^(on)?$/, enable_security_acl => qr/^(on)?$/, - default_age => qr/^(?:\d+(?:[ywdhms]\s*)?)+\s*$/, + default_age => qr/^((?:\d+(?:[ywdhms]\s*?)?)+)\s*$/, ); =head1 FUNCTION @@ -2048,7 +2048,7 @@ sub display_graph %$fields, }, "graph.tpl"); - if ($fields->{gtype} eq 'balloon') { + if ($fields->{gtype} and $fields->{gtype} eq 'balloon') { system("./bgraph.pl"); } } -- 2.39.5