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

This commit is contained in:
Robin Appelman 2013-11-12 15:38:00 +01:00
parent a745901d50
commit abc428916c
1 changed files with 1 additions and 1 deletions

View File

@ -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;