Index: branches/5.2.x/units/reports/reports_event_handler.php =================================================================== diff -u -N -r16696 -r16798 --- branches/5.2.x/units/reports/reports_event_handler.php (.../reports_event_handler.php) (revision 16696) +++ branches/5.2.x/units/reports/reports_event_handler.php (.../reports_event_handler.php) (revision 16798) @@ -1,6 +1,6 @@ Application->GetSID().'_SaleReport'; + $table_name = TABLE_PREFIX . 'ses_' . $this->Application->GetSID(Session::PURPOSE_REFERENCE) . '_SaleReport'; $field_values['table_name'] = $table_name; $this->Conn->Query('DROP TABLE IF EXISTS '.$table_name);