Skip to content
Snippets Groups Projects
Commit abc42891 authored by Robin Appelman's avatar Robin Appelman
Browse files

Fix fatal error when trying to open a non existing public link

parent a745901d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment