in case no share is found for the given token we can return right away
This commit is contained in:
parent
9fd4cb1b66
commit
6746ad0a73
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue