Bug 21395: Fix misc/admin/koha-preferences
authorJulian Maurice <julian.maurice@biblibre.com>
Mon, 29 Jun 2020 13:23:35 +0000 (17:23 +0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 29 Jun 2020 13:43:41 +0000 (15:43 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

misc/admin/koha-preferences

index ad19a39..05667b8 100755 (executable)
@@ -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);