Searching for custom user field gives error

Affected version

Mr. Jinx

Well-known member
I have created a 'single line text box' custom user field.
Going to Users > Search for users. If I enter a value to search for in the custom user field, I get this error:

ErrorException: [E_WARNING] array_merge(): Expected parameter 1 to be an array, string given in src/XF/Searcher/User.php at line 151
  1. XF::handlePhpError()
  2. array_merge() in src/XF/Searcher/User.php at line 151
  3. XF\Searcher\User->applySpecialCriteriaValue() in src/XF/Searcher/AbstractSearcher.php at line 401
  4. XF\Searcher\AbstractSearcher->applyCriteriaValue() in src/XF/Searcher/AbstractSearcher.php at line 394
  5. XF\Searcher\AbstractSearcher->applyCriteria() in src/XF/Searcher/AbstractSearcher.php at line 361
  6. XF\Searcher\AbstractSearcher->getFinder() in src/XF/Admin/Controller/User.php at line 61
  7. XF\Admin\Controller\User->actionList() in src/XF/Mvc/Dispatcher.php at line 321
  8. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
  9. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  10. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  11. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
  12. XF\App->run() in src/XF.php at line 390
  13. XF::runApp() in admin.php at line 13