use OC_DB::executeAudited
This commit is contained in:
parent
3cd0caa643
commit
5a9e473a79
1 changed files with 3 additions and 5 deletions
|
@ -277,13 +277,11 @@ class Share {
|
||||||
`item_source` = ? AND `item_type` = ? AND `share_with` = ?'
|
`item_source` = ? AND `item_type` = ? AND `share_with` = ?'
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $query->execute(array($itemSource, $itemType, $user));
|
$result = \OC_DB::executeAudited($query, array($itemSource, $itemType, $user));
|
||||||
|
|
||||||
if($result) {
|
|
||||||
while ($row = $result->fetchRow()) {
|
while ($row = $result->fetchRow()) {
|
||||||
$shares[] = $row;
|
$shares[] = $row;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//if didn't found a result than let's look for a group share.
|
//if didn't found a result than let's look for a group share.
|
||||||
if(empty($shares)) {
|
if(empty($shares)) {
|
||||||
|
|
Loading…
Reference in a new issue