Avoid uninitialized variable warning if no locale has been passed in
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 May 2008 02:27:40 +0000 (02:27 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 May 2008 02:27:40 +0000 (02:27 +0000)
(Yes, it's okay to have the trailing . in the no-locale situation)

git-svn-id: svn://svn.open-ils.org/ILS/trunk@9685 dcc99617-32d9-48b4-a31d-7c20da2025e4

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"));