From 928bb362a23da8d35a959b19e7e2c225934f01c2 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sun, 6 May 2018 11:44:25 +0000 Subject: [PATCH] 55_InfoPanel.pm: check plotName exists git-svn-id: https://svn.fhem.de/fhem/trunk@16695 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/55_InfoPanel.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fhem/FHEM/55_InfoPanel.pm b/fhem/FHEM/55_InfoPanel.pm index 7532d05d5..861ea19f6 100644 --- a/fhem/FHEM/55_InfoPanel.pm +++ b/fhem/FHEM/55_InfoPanel.pm @@ -60,6 +60,8 @@ # with \n in text # 2016-09-04 - 12114 - added: movecalculated # +# 2018-05-06 - $Rev$ - changed: check plotName exists +# ############################################## =cut @@ -543,6 +545,7 @@ sub btIP_itemLongpoll { sub btIP_itemPlot { my ($id,$x,$y,$scale,$inline,$arg) = @_; my (@plotName) = split(";",$arg); + return ("\n",undef,undef) unless defined($defs{$plotName[0]}); $id = ($id eq '-') ? createUniqueId() : $id; my (@webs,$width,$height,$newWidth,$newHeight,$output,$mimetype,$svgdata);