2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

55_InfoPanel.pm: check plotName exists

git-svn-id: https://svn.fhem.de/fhem/trunk@16695 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2018-05-06 11:44:25 +00:00
parent 5d77585607
commit 928bb362a2

View File

@ -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 ("<!-- undefined plotDevice -->\n",undef,undef) unless defined($defs{$plotName[0]});
$id = ($id eq '-') ? createUniqueId() : $id;
my (@webs,$width,$height,$newWidth,$newHeight,$output,$mimetype,$svgdata);