Forum Discussion
RokuMarkn
10 years agoVisitor
Well, the last line before the return is unconditionally pushing an empty string onto the array, so the array size will never be zero even if the URL transfer fails. I'm not completely understanding the logic, but you need to determine whether, when the URL fails, you want the array to be empty or to contain one empty string. If the latter then you need to adjust your count test accordingly.
--Mark
--Mark