Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-14 23:45:08 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-14 23:45:08 +0400
commitecc7b01cee466d4893f8199abaee363c6bc4dac9 (patch)
tree4548696bc2f9299d859a28f74fbd6a6439bcf645 /lib
parent2bb4c266a6a3d2febe119054675f7d5ee8a9f46f (diff)
parentabc428916c4a2892cad4836fb9a4ce5f61f5e0e0 (diff)
Merge pull request #5824 from owncloud/fix-publicshare-non-existing
Fix fatal error when trying to open a non existing public link
Diffstat (limited to 'lib')
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 01bf61a60a5..caa274b8579 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -354,7 +354,7 @@ class Share {
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR);
}
$row = $result->fetchRow();
- if (self::expireItem($row)) {
+ if (is_array($row) and self::expireItem($row)) {
return false;
}
return $row;