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:
authorRobin Appelman <icewind@owncloud.com>2013-11-12 18:38:00 +0400
committerRobin Appelman <icewind@owncloud.com>2013-11-12 18:38:00 +0400
commitabc428916c4a2892cad4836fb9a4ce5f61f5e0e0 (patch)
treec5dbb43f2ebf035f1cfecdbfa374b6641f799b75 /lib
parenta745901d50c67728c0a8b7f0a8820ebd6992bad6 (diff)
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;