Skip to content

Commit

Permalink
Fixed #37: check for empty responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jan 17, 2018
1 parent 013aeaa commit 527369a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WebDAVAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public function getMetadata($path)
try {
$result = $this->client->propFind($location, self::$metadataFields);

if (empty($result)) {
return false;
}

return $this->normalizeObject($result, $path);
} catch (Exception $e) {
return false;
Expand Down

0 comments on commit 527369a

Please sign in to comment.