diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-12-12 11:18:35 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-12-12 11:18:35 +0100 |
commit | 15ecb28d50e5b8ce4100075caa52d96d4f00ae13 (patch) | |
tree | 02ca5b15c2a09afaa6a44a71fcf14d3c53184200 /apps/files_sharing/lib | |
parent | 25dde7e93bc648ec8cd14b8f2711d50f77d8d1bf (diff) | |
download | nextcloud-server-15ecb28d50e5b8ce4100075caa52d96d4f00ae13.tar.gz nextcloud-server-15ecb28d50e5b8ce4100075caa52d96d4f00ae13.zip |
Make $userId mandatory for searchByTags
$userId is now a mandatory parameter for searchByTags.
Also fixed some places in the code where the argument was missing (Node
API and View)
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index da8155ec6fa..e3bee145876 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -351,7 +351,7 @@ class Shared_Cache extends Cache { * @param string $userId owner of the tags * @return array file data */ - public function searchByTag($tag, $userId = null) { + public function searchByTag($tag, $userId) { // TODO: inject this $tagger = \OC::$server->getTagManager()->load('files', null, null, $userId); $result = array(); |