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

remotes/origin/ldap_group_count
Thomas Müller 11 years ago
parent 9fd4cb1b66
commit 6746ad0a73
  1. 3
      lib/public/share.php

@ -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…
Cancel
Save