From: Bjoern Schiessle Date: Wed, 25 Sep 2013 10:18:29 +0000 (+0200) Subject: use OC_DB::executeAudited X-Git-Tag: v6.0.0alpha2~101^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=acd3c11e47212e3b9d59a914cea408637582bb06;p=nextcloud-server.git use OC_DB::executeAudited --- diff --git a/lib/public/share.php b/lib/public/share.php index c0f339744cc..be61d046f0b 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -295,12 +295,10 @@ class Share { `item_source` = ? AND `item_type` = ? AND `share_with` in (?)' ); - $result = $query->execute(array($itemSource, $itemType, implode(',', $groups))); + $result = \OC_DB::executeAudited($query, array($itemSource, $itemType, implode(',', $groups))); - if($result) { - while ($row = $result->fetchRow()) { - $shares[] = $row; - } + while ($row = $result->fetchRow()) { + $shares[] = $row; } }