Merge pull request #522 from DavidAnderson684/patch-1

Avoid calling fclose(false)

* DavidAnderson684/patch-1:
  Avoid calling fclose(false)
This commit is contained in:
Andreas Fischer 2014-12-03 23:08:51 +01:00
commit 630a71bee6

View File

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