The search seems to find deleted threads, when user searching isn't authorized to see those. This can be fixed by adding;
Code:
AND thread.visible =1
to the query. Even nicer would be to check if user can administer threads and base query on that, in ajaxlivesearch.php;
Code:
require_once(DIR . '/includes/adminfunctions.php');
..
$showHidden = can_administer('canadminthreads') ? "" : " AND thread.visible =1 ";
..
AND thread.lastpostid > 0
$showHidden
ORDER BY " . $vbulletin->db->escape_string($lsasortby) . " " . $vbulletin->db->escape_string($lsasorttype) . "
Excellent mod, saves me a lot of work! (voted MOTM):up: