summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-11 16:23:39 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-01-02 10:28:41 +0100
commit0e9b05b7012844e348d36b5b35e1c50487a3bbc4 (patch)
treee910ca1483a8936327b0667eb2e28e75d10df3d4 /lib
parentc738359a111445aac90518db39b5d5883e44892d (diff)
downloadnextcloud-server-0e9b05b7012844e348d36b5b35e1c50487a3bbc4.tar.gz
nextcloud-server-0e9b05b7012844e348d36b5b35e1c50487a3bbc4.zip
ajax paging, some js cleanups
Diffstat (limited to 'lib')
-rw-r--r--lib/private/search.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/search.php b/lib/private/search.php
index 4629d52b40e..22f92534cbd 100644
--- a/lib/private/search.php
+++ b/lib/private/search.php
@@ -64,8 +64,10 @@ class Search implements ISearch {
$providerResults = $provider->search($query);
if ($size > 0) {
$slicedResults = array_slice($providerResults, $page * $size, $size);
+ $results = array_merge($results, $slicedResults);
+ } else {
+ $results = array_merge($results, $providerResults);
}
- $results = array_merge($results, $slicedResults);
} else {
\OC::$server->getLogger()->warning('Ignoring Unknown search provider', array('provider' => $provider));
}