Skip to content

Commit

Permalink
Removed logical and
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Mar 9, 2014
1 parent 5a725aa commit 5e32a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Sftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function listDirectoryContents($directory, $recursive = true)
$path = empty($directory) ? $filename : ($directory . DIRECTORY_SEPARATOR . $filename);
$result[] = $this->normalizeListingObject($path, $object);

if ($recursive and $object['type'] === 2) {
if ($recursive && $object['type'] === 2) {
$result = array_merge($result, $this->listDirectoryContents($path));
}
}
Expand Down

0 comments on commit 5e32a47

Please sign in to comment.