diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-06 13:56:22 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-02 18:56:04 +0200 |
commit | a7f6a051addf9545c895384e5e295fbfbf8f8df8 (patch) | |
tree | b96d7f877cd8e7f1096fb6e35914a25dcc5f2193 /apps/files_trashbin/lib/trashbin.php | |
parent | 7ad0fee0b56d9ab678cbb52128d427ebd641b05e (diff) | |
download | nextcloud-server-a7f6a051addf9545c895384e5e295fbfbf8f8df8.tar.gz nextcloud-server-a7f6a051addf9545c895384e5e295fbfbf8f8df8.zip |
return size '0' if the trashbin folder doesn't exists yet
Diffstat (limited to 'apps/files_trashbin/lib/trashbin.php')
-rw-r--r-- | apps/files_trashbin/lib/trashbin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index e95f1b13c37..72b52e716d3 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -904,12 +904,12 @@ class Trashbin { * get current size of trash bin from a given user * * @param string $user user who owns the trash bin - * @return mixed trash bin size or false if no trash bin size is stored + * @return integer trash bin size */ private static function getTrashbinSize($user) { $view = new \OC\Files\View('/' . $user); $fileInfo = $view->getFileInfo('/files_trashbin'); - return $fileInfo['size']; + return isset($fileInfo['size']) ? $fileInfo['size'] : 0; } /** |