fixed warning for uninitialized value in pattern match

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6262 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-07-16 07:46:03 +00:00
parent 7ab1450b7e
commit fa92690a3f

View File

@@ -556,7 +556,7 @@ readingsGroup_2html($)
$first = 0;
next;
} else {
if( $regex =~ m/(.*)@(.*)/ ) {
if( $regex && $regex =~ m/(.*)@(.*)/ ) {
$regex = $1;
$name = $2;
if( $name =~ m/^{(.*)}$/ ) {