summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Nagios/Plugin/Config.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Nagios/Plugin/Config.pm b/lib/Nagios/Plugin/Config.pm
index 92193c2..d565973 100644
--- a/lib/Nagios/Plugin/Config.pm
+++ b/lib/Nagios/Plugin/Config.pm
@@ -72,9 +72,7 @@ sub read_string
72 72
73 # Handle properties 73 # Handle properties
74 if ( /^\s*([^=]+?)\s*=\s*(.*?)\s*$/ ) { 74 if ( /^\s*([^=]+?)\s*=\s*(.*?)\s*$/ ) {
75 $self->{$ns}->{$1} = defined $self->{$ns}->{$1} ? 75 push @{$self->{$ns}->{$1}}, $2;
76 [ $self->{$ns}->{$1}, $2 ] :
77 $2;
78 next; 76 next;
79 } 77 }
80 78