Index: branches/5.1.x/units/affiliates/affiliates_event_handler.php =================================================================== diff -u -r13100 -r13185 --- branches/5.1.x/units/affiliates/affiliates_event_handler.php (.../affiliates_event_handler.php) (revision 13100) +++ branches/5.1.x/units/affiliates/affiliates_event_handler.php (.../affiliates_event_handler.php) (revision 13185) @@ -1,6 +1,6 @@ Conn->GetCol($sql); - if( $this->Application->isDebugMode() ) - { + if ($affiliate_ids && defined('DEBUG_MODE') && DEBUG_MODE && $this->Application->isDebugMode()) { $this->Application->Debugger->appendHTML('Affiliates Pending Totals Reset: '); print_pre($affiliate_ids); }