[Pkg-owncloud-commits] [php-sabredav] 10/21: Properly concatenate $path, even if it's "0"
David Prévot
taffit at moszumanska.debian.org
Fri Jul 3 20:11:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 886fd0d74e98edcf1b61f28a436eaa980b947d10
Author: Vincent Petry <PVince81 at yahoo.fr>
Date: Wed Jun 17 11:54:00 2015 +0200
Properly concatenate $path, even if it's "0"
---
lib/DAV/Server.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/DAV/Server.php b/lib/DAV/Server.php
index e374f80..b6d060e 100644
--- a/lib/DAV/Server.php
+++ b/lib/DAV/Server.php
@@ -873,7 +873,7 @@ class Server extends EventEmitter {
foreach($this->tree->getChildren($path) as $childNode) {
$subPropFind = clone $propFind;
$subPropFind->setDepth($newDepth);
- $subPath = $path? $path . '/' . $childNode->getName() : $childNode->getName();
+ $subPath = $path !== ''? $path . '/' . $childNode->getName() : $childNode->getName();
$subPropFind->setPath($subPath);
$propFindRequests[] = [
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list