diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-25 12:18:29 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-25 12:18:29 +0200 |
commit | acd3c11e47212e3b9d59a914cea408637582bb06 (patch) | |
tree | f9b3fab6ea1125c0a052fde70dee2db388acff5b /lib/public/share.php | |
parent | 5a9e473a7964a068599de59cbbd7fe1dae6493ef (diff) | |
download | nextcloud-server-acd3c11e47212e3b9d59a914cea408637582bb06.tar.gz nextcloud-server-acd3c11e47212e3b9d59a914cea408637582bb06.zip |
use OC_DB::executeAudited
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 8 |
1 files changed, 3 insertions, 5 deletions
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; } } |