in case no share is found for the given token we can return right away

This commit is contained in:
Thomas Müller 2014-01-21 10:55:10 +01:00
parent 9fd4cb1b66
commit 6746ad0a73

View file

@ -358,6 +358,9 @@ class Share {
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR);
}
$row = $result->fetchRow();
if ($row === false) {
return false;
}
if (is_array($row) and self::expireItem($row)) {
return false;
}