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>2014-01-21 13:55:10 +0400
committerVincent Petry <pvince81@owncloud.com>2014-01-21 23:52:16 +0400
commitc10af303819e0267dad9988c93764dbcd29387db (patch)
tree56a304f6e02152d1dae89af7101f59dc2e55b3df /lib
parent4351609df936ae7335c9586748b7b6ec3eb0bca6 (diff)
in case no share is found for the given token we can return right away
Diffstat (limited to 'lib')
-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;
}