diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-25 12:15:46 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-25 12:15:46 +0200 |
commit | 5a9e473a7964a068599de59cbbd7fe1dae6493ef (patch) | |
tree | c1d46cf0e2d3d06ca8953e1dd86a29d04b088130 /lib/public/share.php | |
parent | 3cd0caa6435992c270adc3d2387b03f0aebfe98c (diff) | |
download | nextcloud-server-5a9e473a7964a068599de59cbbd7fe1dae6493ef.tar.gz nextcloud-server-5a9e473a7964a068599de59cbbd7fe1dae6493ef.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 bdfaed2d5cd..c0f339744cc 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -277,12 +277,10 @@ class Share { `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()) { - $shares[] = $row; - } + while ($row = $result->fetchRow()) { + $shares[] = $row; } //if didn't found a result than let's look for a group share. |