mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
FB_CALLLIST: optimization of RenameFn
git-svn-id: https://svn.fhem.de/fhem/trunk@10647 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
703598521d
commit
734495062f
@ -263,10 +263,14 @@ sub FB_CALLLIST_Rename($$)
|
||||
{
|
||||
my ($new,$old) = @_;
|
||||
|
||||
setKeyValue("FB_CALLLIST-".$new, getKeyValue("FB_CALLLIST-".$old));
|
||||
setKeyValue("FB_CALLLIST-".$old, undef);
|
||||
my (undef, $data) = getKeyValue("FB_CALLLIST-".$old);
|
||||
|
||||
return undef;
|
||||
return undef unless(defined($data));
|
||||
|
||||
setKeyValue("FB_CALLLIST-".$new, $data);
|
||||
setKeyValue("FB_CALLLIST-".$old, undef);
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
#####################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user