Don't overwrite the error from the first try.

This commit is contained in:
dlandon
2022-11-03 08:32:02 -05:00
parent 3f84e6a6f3
commit bb019e1c79

View File

@@ -262,7 +262,6 @@ function download($url, $name, &$error, $write=true) {
return false;
}
} else {
$error = "empty URL";
// The url is empty
return false;
}