From abc428916c4a2892cad4836fb9a4ce5f61f5e0e0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 12 Nov 2013 15:38:00 +0100 Subject: [PATCH] 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 01bf61a60a5..caa274b8579 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; -- 2.39.5