From 32dfb9ea8d76bfbfd9f2f92f32951e7482bf70fb Mon Sep 17 00:00:00 2001 From: betateilchen Date: Thu, 17 Jan 2019 15:25:09 +0000 Subject: [PATCH] betateilchen: debug code git-svn-id: https://svn.fhem.de/fhem/trunk@18298 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/betateilchen/debug/configDB.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/betateilchen/debug/configDB.pm b/fhem/contrib/betateilchen/debug/configDB.pm index affc1e2dd..863d4ce2d 100644 --- a/fhem/contrib/betateilchen/debug/configDB.pm +++ b/fhem/contrib/betateilchen/debug/configDB.pm @@ -212,9 +212,9 @@ my ($err,@config); return 0 if ($err); -map { $_ =~ s/^\s+|\s+$//g; } @config; -map { $_ =~ s/;$/;;/;} @config; -map { $_ = undef unless length($_) } @config; +@config = map { $_ =~ s/^\s+|\s+$//g; } @config; +@config = map { $_ =~ s/;$/;;/;} @config; +@config = map { $_ ? $_ : () } @config; use Data::Dumper; print Dumper @config;