Avoid uninitialized variable warning if no locale has been passed in
[Evergreen.git] / Open-ILS / src / extras / org_tree_js.pl
index 670e6ca..2bed194 100644 (file)
@@ -13,7 +13,7 @@ use OpenSRF::Utils::Cache;
 die "usage: perl org_tree_js.pl <bootstrap_config>" unless $ARGV[0];
 OpenSRF::System->bootstrap_client(config_file => $ARGV[0]);
 
-my $locale = $ARGV[1];
+my $locale = $ARGV[1] || '';
 
 Fieldmapper->import(IDL => OpenSRF::Utils::SettingsClient->new->config_value("IDL"));