if one public link share was found, we don't have to check it for the other folders
This commit is contained in:
parent
b44192f366
commit
672811c103
|
@ -185,22 +185,24 @@ class Share {
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for public link shares
|
//check for public link shares
|
||||||
$query = \OC_DB::prepare(
|
if (!$publicShare) {
|
||||||
'SELECT share_with
|
$query = \OC_DB::prepare(
|
||||||
|
'SELECT share_with
|
||||||
FROM
|
FROM
|
||||||
`*PREFIX*share`
|
`*PREFIX*share`
|
||||||
WHERE
|
WHERE
|
||||||
item_source = ? AND share_type = ?'
|
item_source = ? AND share_type = ?'
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $query->execute(array($source, self::SHARE_TYPE_LINK));
|
$result = $query->execute(array($source, self::SHARE_TYPE_LINK));
|
||||||
|
|
||||||
if (\OC_DB::isError($result)) {
|
if (\OC_DB::isError($result)) {
|
||||||
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR);
|
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result->fetchRow()) {
|
if ($result->fetchRow()) {
|
||||||
$publicShare = true;
|
$publicShare = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// let's get the parent for the next round
|
// let's get the parent for the next round
|
||||||
|
|
Loading…
Reference in New Issue