summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/drakguard b/bin/drakguard
index 4dff7aa..2d02d37 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -245,7 +245,8 @@ sub quit_gui {
sub load() {
my $guardian = read_dansguardian();
- $level = { reverse %dansguardian_levels }->{$guardian->{naughtynesslimit}};
+ my $levelname = { %dansguardian_levels }->{$guardian->{naughtynesslimit}};
+ $level = { reverse %dansguardian_levels }->{$levelname} if $levelname;
$level ||= { reverse %dansguardian_levels }->{High};
$enable = services::starts_on_boot('dansguardian');