2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

98_update.pm: fix warning if connection is broken (Forum #62706)

git-svn-id: https://svn.fhem.de/fhem/trunk@12801 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-12-17 16:52:31 +00:00
parent 7cc7bab90f
commit 8bd7371838

View File

@ -517,7 +517,7 @@ upd_getUrl($)
uLog 1, $err;
return "";
}
if(length($data) == 0) {
if(!$data) {
uLog 1, "$url: empty file received";
return "";
}