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

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

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 "";
}