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:
Thomas Müller 2013-11-14 11:45:08 -08:00
commit ecc7b01cee

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;