in case no share is found for the given token we can return right away
This commit is contained in:
parent
9fd4cb1b66
commit
6746ad0a73
|
@ -358,6 +358,9 @@ class Share {
|
||||||
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR);
|
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR);
|
||||||
}
|
}
|
||||||
$row = $result->fetchRow();
|
$row = $result->fetchRow();
|
||||||
|
if ($row === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (is_array($row) and self::expireItem($row)) {
|
if (is_array($row) and self::expireItem($row)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue