mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #5824 from owncloud/fix-publicshare-non-existing
Fix fatal error when trying to open a non existing public link
This commit is contained in:
commit
ecc7b01cee
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue