summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-05-13 17:41:18 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-13 17:41:18 +0200
commitf5bc680f9c725c0aea166f3fc3eee8e0bcf5427c (patch)
treedc89b4a5dad4560af04e4224352d0cef521c9c3b /lib
parent7babd44dd07091abaa871b40df8e8b10073482a3 (diff)
parentbab8c1f8e51a93443c29fdabfdc9951d0efde473 (diff)
downloadnextcloud-server-f5bc680f9c725c0aea166f3fc3eee8e0bcf5427c.tar.gz
nextcloud-server-f5bc680f9c725c0aea166f3fc3eee8e0bcf5427c.zip
Merge pull request #8572 from owncloud/core-getabsolutepathwithzero
Fixed getAbsolutePath case when path is "0"
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 407f5981957..39c71cfc0b0 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -37,7 +37,7 @@ class View {
}
public function getAbsolutePath($path = '/') {
- if (!$path) {
+ if ($path === '') {
$path = '/';
}
if ($path[0] !== '/') {