Fix fatal error when trying to open a non existing public link
This commit is contained in:
parent
a745901d50
commit
abc428916c
|
@ -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 New Issue