Skip to content

Commit

Permalink
Use a lexical variable instead of the global $_ to make the code more…
Browse files Browse the repository at this point in the history
… robust.
  • Loading branch information
eliasp committed Oct 20, 2010
1 parent 61458da commit 7a9b20a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions otrs_joomla_module/Kernel/System/JoomlaGateway.pm
Expand Up @@ -149,9 +149,9 @@ sub GetTicketQueues {
%NewTos = ( $Object->Run( Env => $Self ), ( '', => '' ) );
}
if (%NewTos) {
for ( keys %NewTos ) {
$NewTos{"$_||$NewTos{$_}"} = $NewTos{$_};
delete $NewTos{$_};
for my $Key ( keys %NewTos ) {
$NewTos{"$Key||$NewTos{$Key}"} = $NewTos{$Key};
delete $NewTos{$Key};
}
}
return \%NewTos;
Expand Down

0 comments on commit 7a9b20a

Please sign in to comment.