Changeset View
Changeset View
Standalone View
Standalone View
core/units/categories/categories_event_handler.php
Show First 20 Lines • Show All 2462 Lines • ▼ Show 20 Line(s) | |||||
*/ | */ | ||||
function OnSimpleSearch($event) | function OnSimpleSearch($event) | ||||
{ | { | ||||
$event->redirect = false; | $event->redirect = false; | ||||
$search_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | $search_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | ||||
$keywords = $this->Application->unescapeRequestVariable(trim($this->Application->GetVar('keywords'))); | $keywords = $this->Application->unescapeRequestVariable(trim($this->Application->GetVar('keywords'))); | ||||
$query_object = $this->Application->recallObject('HTTPQuery'); | $query_object = $this->Application->recallObject('kHTTPQuery'); | ||||
/* @var $query_object kHTTPQuery */ | /* @var $query_object kHTTPQuery */ | ||||
$sql = 'SHOW TABLES LIKE "'.$search_table.'"'; | $sql = 'SHOW TABLES LIKE "'.$search_table.'"'; | ||||
if ( !isset($query_object->Get['keywords']) && !isset($query_object->Post['keywords']) && $this->Conn->Query($sql) ) { | if ( !isset($query_object->Get['keywords']) && !isset($query_object->Post['keywords']) && $this->Conn->Query($sql) ) { | ||||
// used when navigating by pages or changing sorting in search results | // used when navigating by pages or changing sorting in search results | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 677 Lines • Show Last 20 Lines |