2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 07:24:21 +00:00

FB_CALLLIST: fix "Use of uninitialized value" warnings during FHEM startup (Forum: #47568)

git-svn-id: https://svn.fhem.de/fhem/trunk@10545 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2016-01-16 23:03:19 +00:00
parent dde1f80c3e
commit 0b70532179
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: FB_CALLLIST: fix "Use of uninitialized value" warnings on startup
- feature: 2016-01-17 - ***
*** Do not worry about a lot of updates. Many
*** modules were modified only to support the

View File

@ -272,7 +272,7 @@ sub FB_CALLLIST_Notify($$)
FB_CALLLIST_cleanupList($hash);
# Inform all FHEMWEB clients
FB_CALLLIST_updateFhemWebClients($hash);
FB_CALLLIST_updateFhemWebClients($hash) if(grep(m/^(?:ATTR|DELETEATTR)$/, @{$d->{CHANGED}}));
# save current list state to file/configDB
FB_CALLLIST_saveList($hash);
@ -587,7 +587,7 @@ sub FB_CALLLIST_list2html($;$)
my $ret .= "<table>";
if(AttrVal($name, "no-heading", "0") eq "0")
if(AttrVal($name, "no-heading", "0") eq "0" and defined($FW_ME) and defined($FW_subdir))
{
$ret .=" <tr><td>";
$ret .= '<div class="devType"><a href="'.$FW_ME.$FW_subdir.'?detail='.$name.'">'.$alias.'</a>'.(IsDisabled($name) ? " (disabled)" : "").'</div>' unless($FW_webArgs{"detail"});