[open-ils-commits] r9685 - trunk/Open-ILS/src/extras

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 22 22:27:41 EDT 2008


Author: dbs
Date: 2008-05-22 22:27:40 -0400 (Thu, 22 May 2008)
New Revision: 9685

Modified:
   trunk/Open-ILS/src/extras/org_tree_js.pl
Log:
Avoid uninitialized variable warning if no locale has been passed in
(Yes, it's okay to have the trailing . in the no-locale situation)


Modified: trunk/Open-ILS/src/extras/org_tree_js.pl
===================================================================
--- trunk/Open-ILS/src/extras/org_tree_js.pl	2008-05-23 02:20:41 UTC (rev 9684)
+++ trunk/Open-ILS/src/extras/org_tree_js.pl	2008-05-23 02:27:40 UTC (rev 9685)
@@ -13,7 +13,7 @@
 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"));
 



More information about the open-ils-commits mailing list