Index: trunk/core/units/general/cat_event_handler.php
===================================================================
diff -u -r8779 -r8786
--- trunk/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 8779)
+++ trunk/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 8786)
@@ -242,13 +242,14 @@
}
$search_event = $event_mapping[$type];
$this->$search_event($event);
+
$search_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search';
$sql = 'SHOW TABLES LIKE "'.$search_table.'"';
- if ( $this->Conn->Query($sql) ) {
+ if ($this->Conn->Query($sql)) {
$search_res_ids = $this->Conn->GetCol('SELECT ResourceId FROM '.$search_table);
}
- if ($search_res_ids) {
+ if (isset($search_res_ids) && $search_res_ids) {
$type_clauses['search']['include'] = '%1$s.ResourceId IN ('.implode(',', $search_res_ids).') AND PrimaryCat = 1';
$type_clauses['search']['except'] = '%1$s.ResourceId NOT IN ('.implode(',', $search_res_ids).') AND PrimaryCat = 1';
}
Index: trunk/themes/default2007/platform/inc/captcha_image.tpl
===================================================================
diff -u
--- trunk/themes/default2007/platform/inc/captcha_image.tpl (revision 0)
+++ trunk/themes/default2007/platform/inc/captcha_image.tpl (revision 8786)
@@ -0,0 +1 @@
+