From 250f40fe407f8c7fe38776b7b38f883ffd40b836 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Wed, 7 Nov 2012 17:15:13 +0100
Subject: [PATCH] check if $path is a empty string

---
 lib/filesystemview.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index ccaa040fe88..0229213ebcb 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -48,7 +48,7 @@ class OC_FilesystemView {
 	}
 
 	public function getAbsolutePath($path = '/') {
-		if($path[0]!=='/') {
+		if(!$path || $path[0]!=='/') {
 			$path='/'.$path;
 		}
 		return $this->fakeRoot.$path;
-- 
GitLab