Commit 2169001f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix js error when there are no results in admin user search

parent fba213ab
......@@ -108,9 +108,11 @@ function UserSearch() {
self.params.action = 'search';
sendjsonrequest('search.json.php', self.params, 'POST', function(data) {
$('results').innerHTML = data.data;
self.rewritePaging();
self.rewriteSorting();
self.rewriteSuspendLinks();
if ($('searchresults')) {
self.rewritePaging();
self.rewriteSorting();
self.rewriteSuspendLinks();
}
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment