[Rt-commit] r12334 - in rt/branches/3.8-TESTING: .

sartak at bestpractical.com sartak at bestpractical.com
Thu May 15 06:53:36 EDT 2008


Author: sartak
Date: Thu May 15 06:53:34 2008
New Revision: 12334

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/lib/RT/Installer.pm

Log:
 r55874 at onn:  sartak | 2008-05-15 06:49:54 -0400
 Print only defined configuration into the generated site config


Modified: rt/branches/3.8-TESTING/lib/RT/Installer.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Installer.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Installer.pm	Thu May 15 06:53:34 2008
@@ -254,7 +254,9 @@
 
     if ( open my $fh, '>', $file  ) {
         for ( keys %{$RT::Installer->{InstallConfig}} ) {
-             print $fh "Set( \$$_, '$RT::Installer->{InstallConfig}{$_}' );\n";
+            if (defined $RT::Installer->{InstallConfig}{$_}) {
+                print $fh "Set( \$$_, '$RT::Installer->{InstallConfig}{$_}' );\n";
+            }
         }
         print $fh "1;\n";
         close $fh;


More information about the Rt-commit mailing list