count correct array, then using 1000 as MAX_SQL_CHUNK_SIZE works as expected
Merge pull request #5626 from owncloud/fix_search_in_shared_files

count correct array, then using 1000 as MAX_SQL_CHUNK_SIZE works as expected