2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

fixing creating cache values even when cache is disabled

git-svn-id: https://svn.fhem.de/fhem/trunk@2452 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-01-07 22:04:05 +00:00
parent 1b612f3aec
commit cc06ee5fdc

View File

@ -386,10 +386,14 @@ if(AttrVal($name, "reverse-search", "none") eq "search.ch")
}
# If no result is available set cache result and return undefined
$hash->{helper}{CACHE}{$number} = "unknown";
return "unknown";
if(AttrVal($name, "reverse-search-cache", "0") eq "1")
{
# If no result is available set cache result and return undefined
$hash->{helper}{CACHE}{$number} = "unknown";
}
return undef;
}
sub FB_CALLMONITOR_html2txt($)