diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-14 11:45:08 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-14 11:45:08 -0800 |
commit | ecc7b01cee466d4893f8199abaee363c6bc4dac9 (patch) | |
tree | 4548696bc2f9299d859a28f74fbd6a6439bcf645 | |
parent | 2bb4c266a6a3d2febe119054675f7d5ee8a9f46f (diff) | |
parent | abc428916c4a2892cad4836fb9a4ce5f61f5e0e0 (diff) | |
download | nextcloud-server-ecc7b01cee466d4893f8199abaee363c6bc4dac9.tar.gz nextcloud-server-ecc7b01cee466d4893f8199abaee363c6bc4dac9.zip |
Merge pull request #5824 from owncloud/fix-publicshare-non-existing
Fix fatal error when trying to open a non existing public link
-rw-r--r-- | lib/public/share.php | 2 |
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; |