From 2ea08985f4ef5dc56b2ac28acd43c041b9679b15 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 1 Dec 2024 18:40:11 +0000 Subject: [PATCH] 93_DbRep: fix check changeValue Forum: #139950 git-svn-id: https://svn.fhem.de/fhem/trunk@29390 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/93_DbRep.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/93_DbRep.pm b/fhem/FHEM/93_DbRep.pm index 724ba5ffa..25c8d64ff 100644 --- a/fhem/FHEM/93_DbRep.pm +++ b/fhem/FHEM/93_DbRep.pm @@ -1110,7 +1110,7 @@ sub DbRep_Set { my $oldval = $hc->{old}; my $newval = $hc->{new}; - if (!defined $oldval || !defined $newval) { + if ($oldval eq '' || $newval eq '') { return qq{Both entries old="old string" new="new string" are needed.}; }