We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0613ccb commitd47025cCopy full SHA for d47025c
lib/Horde/Vfs/Ssh2.php
@@ -101,7 +101,7 @@ public function size($path, $name)
101
$this->_connect();
102
103
$statinfo = @ssh2_sftp_stat($this->_sftp,$this->_getPath($path,$name));
104
-if (($size =$statinfo['size']) ===false) {
+if ( ($statinfo ===false)or (($size =$statinfo['size']) ===false)) {
105
thrownewHorde_Vfs_Exception(sprintf('Unable to check file size of "%s".',$this->_getPath($path,$name)));
106
}
107
@@ -260,7 +260,7 @@ public function isFolder($path, $name)
260
/* See if we can stat the remote filename. ANDed with 040000 is true
261
* if it is a directory. */
262
263
-return$statinfo['mode'] &040000;
+return($statinfo !==false )and ($statinfo['mode'] &040000 );
264
265
266
/**