Skip to content
Permalink
Browse files

Prevent deep recursions on stats import.

  • Loading branch information...
mgruner committed Sep 8, 2017
1 parent 00bcc89 commit b69c2533c951fa72bfe238f255ce76352f054897
Showing with 4 additions and 0 deletions.
  1. +4 −0 Kernel/System/Stats.pm
@@ -3761,6 +3761,10 @@ sub _MonthArray {
sub _AutomaticSampleImport {
my ( $Self, %Param ) = @_;

# Prevent deep recursions.
local $Self->{InAutomaticSampleImport} = $Self->{InAutomaticSampleImport};
return if $Self->{InAutomaticSampleImport}++;

for my $Needed (qw(UserID)) {
if ( !$Param{$Needed} ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(

0 comments on commit b69c253

Please sign in to comment.
You can’t perform that action at this time.