diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/drakguard | 3 |
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'); |