2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-29 11:27:08 +00:00

FB_CALLLIST: delete the stored list from file via setKeyValue when executing set command "clear"

git-svn-id: https://svn.fhem.de/fhem/trunk@9363 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2015-10-04 10:13:40 +00:00
parent dc9bdf87e0
commit 69b9246319

View File

@ -282,6 +282,9 @@ sub FB_CALLLIST_Set($@)
# Inform all FHEMWEB clients
FB_CALLLIST_updateFhemWebClients($hash);
# Delete stored list
FB_CALLLIST_saveList($hash);
return undef;
}
else
@ -775,6 +778,12 @@ sub FB_CALLLIST_saveList($)
my $err = setKeyValue("FB_CALLLIST-$name", $dump);
Log3 $name, 3, "FB_CALLLIST ($name) - error while saving the current call list: $err" if(defined($err));
}
else
{
my $err = setKeyValue("FB_CALLLIST-$name", undef);
Log3 $name, 3, "FB_CALLLIST ($name) - error while saving the current call list: $err" if(defined($err));
}
}