[Pkg-owncloud-commits] [owncloud] 14/111: Fix fatal error when trying to open a non existing public link
David Prévot
taffit at moszumanska.debian.org
Wed Nov 20 21:38:35 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit abc428916c4a2892cad4836fb9a4ce5f61f5e0e0
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Nov 12 15:38:00 2013 +0100
Fix fatal error when trying to open a non existing public link
---
lib/public/share.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/public/share.php b/lib/public/share.php
index 01bf61a..caa274b 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;
--
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