summaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/share.php')
-rw-r--r--lib/public/share.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 4573fe8d8d3..ddc9e1e066f 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -358,6 +358,9 @@ class Share {
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR);
}
$row = $result->fetchRow();
+ if ($row === false) {
+ return false;
+ }
if (is_array($row) and self::expireItem($row)) {
return false;
}