Bug 21395: Fix misc/admin/koha-preferences

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Julian Maurice 2020-06-29 17:23:35 +04:00 committed by Jonathan Druart
parent 3b06780fb2
commit d3f0fc135b

View file

@ -296,7 +296,7 @@ print_usage() if ( $ARGV[0] =~ /^(-h|--help|-help|help)$/ );
print_usage( 1 ) if ( !$ARGV[0] || ref($commands{$ARGV[0]}) ne 'CODE' );
$command = $commands{$ARGV[0]};
my $command = $commands{$ARGV[0]};
shift @ARGV;
$command->(@ARGV);