A fix, but I have no case to verify.

I could not find out under which conditions this is relevant and therefore have no test case, but it must be of instance RedDAV\RedFile.
This commit is contained in:
Klaus 2014-10-12 21:10:04 +02:00
parent dc4593f5b5
commit 5aae5862f2

View File

@ -117,7 +117,7 @@ function cloud_init(&$a) {
if ((! $auth->observer) && ($_SERVER['REQUEST_METHOD'] === 'GET')) {
try {
$x = RedFileData('/' . $a->cmd, $auth);
if($x instanceof RedFile)
if($x instanceof RedDAV\RedFile)
$isapublic_file = true;
}
catch (Exception $e) {