In uddeim_searchbot.php add one line:
[code:1] . "\n AND a.totrash = 0"[/code:1]
so the code looks like
[code:1] $query = "SELECT b.name AS title,"
. "\n a.message AS text,"
. "\n FROM_UNIXTIME(a.datum) AS created,"
. "\n ".$tsection." AS section,"
. "\n '2' AS browsernav,"
. "\n CONCAT( 'index.php?option=com_uddeim&task=show&messageid=', a.id ) AS href"
. "\n FROM #__uddeim AS a"
. "\n INNER JOIN #__users AS b ON a.fromid = b.id"
. "\n WHERE ( a.message LIKE ".$ttext
. "\n OR b.name LIKE ".$ttext
. "\n OR b.username LIKE ".$ttext
. "\n )"
. "\n AND a.toid = ".(int)$userid
. "\n AND a.totrash = 0"
. "\n GROUP BY a.id"
. "\n ORDER BY $order";[/code:1]
uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer