2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

00_MQTT2_CLIENT.pm: fix deleting retained messages

git-svn-id: https://svn.fhem.de/fhem/trunk@28149 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-11-11 10:34:22 +00:00
parent 0efe9ce87a
commit 37edf5fc18

View File

@ -452,7 +452,7 @@ MQTT2_CLIENT_Set($@)
if($a[0] eq "publish") {
shift(@a);
my $retain;
if(@a>2 && $a[0] eq "-r") {
if(@a>0 && $a[0] eq "-r") {
$retain = 1;
shift(@a);
}