[Pkg-owncloud-commits] [owncloud] 24/42: in case no share is found for the given token we can return right away
David Prévot
taffit at moszumanska.debian.org
Wed Jan 22 21:21:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit c10af303819e0267dad9988c93764dbcd29387db
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Tue Jan 21 10:55:10 2014 +0100
in case no share is found for the given token we can return right away
---
lib/public/share.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/public/share.php b/lib/public/share.php
index 4573fe8..ddc9e1e 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list