Avoid calling fclose(false)

The previous code would always call fclose(false) if the file was not successfully opened - resulting in a PHP notice.
This commit is contained in:
David Anderson 2014-12-03 19:29:46 +00:00
parent bce3c02126
commit 647a1e9a5e

View File

@ -195,7 +195,6 @@ class Net_SCP
$fp = @fopen($data, 'rb');
if (!$fp) {
fclose($fp);
return false;
}
$size = filesize($data);