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

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