From 0fd9b594b611e310b1a828a0307a3e65e61cd625 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Fri, 1 Mar 2024 22:03:18 +0100 Subject: [PATCH] FIX: undefined value FIXES: #20 --- FHEM/98_NTFY_CLIENT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/98_NTFY_CLIENT.pm b/FHEM/98_NTFY_CLIENT.pm index b78fa85..0805c17 100644 --- a/FHEM/98_NTFY_CLIENT.pm +++ b/FHEM/98_NTFY_CLIENT.pm @@ -254,7 +254,7 @@ sub NTFY_Publish_Msg readingsBeginUpdate($hash); readingsBulkUpdateIfChanged($hash, "nrPublishedMessages", $nrPublishedMessages); - readingsBulkUpdateIfChanged($hash, "lastUsedTopic", $msg->{topic}); + readingsBulkUpdateIfChanged($hash, "lastUsedTopic", join(",", @{$msg->{topics}})); readingsBulkUpdateIfChanged($hash, "lastMessageSend", $msg->{text}); readingsBulkUpdateIfChanged($hash, "lastRawMessage", to_json($message)); readingsBulkUpdateIfChanged($hash, "lastEror", "");