]> source.dussan.org Git - nextcloud-server.git/commitdiff
use OC_DB::executeAudited
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 25 Sep 2013 10:18:29 +0000 (12:18 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 25 Sep 2013 10:18:29 +0000 (12:18 +0200)
lib/public/share.php

index c0f339744cc7be697d16ea9b794ff3f8c8fafe82..be61d046f0b824082369be5ef09a886ccbadd6a0 100644 (file)
@@ -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;
                        }
                }