summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-04-14 13:36:56 +0200
committerGitHub <noreply@github.com>2021-04-14 13:36:56 +0200
commit644ce9e4f0245a29ffaa7e3161528aba4a87746b (patch)
tree7e226b5f2070edca78259fc1d8a3f246c71c8cde /apps/files_sharing
parent857a40b33428e36321671359eb82d9a6a5e9ef46 (diff)
parent74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63 (diff)
downloadnextcloud-server-644ce9e4f0245a29ffaa7e3161528aba4a87746b.tar.gz
nextcloud-server-644ce9e4f0245a29ffaa7e3161528aba4a87746b.zip
Merge pull request #26529 from J0WI/getSystemValue-type
Use correct getSystemValue type
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php
index 131fe918530..ed809e7658d 100644
--- a/apps/files_sharing/lib/Controller/ShareesAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php
@@ -144,7 +144,7 @@ class ShareesAPIController extends OCSController {
public function search(string $search = '', string $itemType = null, int $page = 1, int $perPage = 200, $shareType = null, bool $lookup = true): DataResponse {
// only search for string larger than a given threshold
- $threshold = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0);
+ $threshold = $this->config->getSystemValueInt('sharing.minSearchStringLength', 0);
if (strlen($search) < $threshold) {
return new DataResponse($this->result);
}