summaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-21 10:55:10 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-21 10:55:10 +0100
commit6746ad0a7315d1ee06f7b1804b7c9457755f6648 (patch)
tree42eb6d1c64bb20f1c7944a4f2b2a25c7c449ba1b /lib/public/share.php
parent9fd4cb1b6683cdebdeaec0f744bd2ba1fb1c64e3 (diff)
downloadnextcloud-server-6746ad0a7315d1ee06f7b1804b7c9457755f6648.tar.gz
nextcloud-server-6746ad0a7315d1ee06f7b1804b7c9457755f6648.zip
in case no share is found for the given token we can return right away
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;
}