summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r--lib/Smokeping.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 8afa5ee..854da15 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1381,7 +1381,8 @@ DOC
delete $grammar->{_mandatory};
# the parent section doesn't define a valid probe anymore
delete $knownprobes{$name}
- if $knownprobes{$name} eq '_template';
+ if exists $knownprobes{$name}
+ and $knownprobes{$name} eq '_template';
# this also keeps track of the real module name for each subprobe,
# should we ever need it
$knownprobes{$subprobename} = $name;