[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.20, 1.464.2.21

Ivan,,, ivan at wavetail.420.am
Tue Jan 5 20:43:51 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv519

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cust_main.pm 
Log Message:
eliminate ya "use of uninitialized value" warning

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.464.2.20
retrieving revision 1.464.2.21
diff -u -d -r1.464.2.20 -r1.464.2.21
--- cust_main.pm	6 Jan 2010 04:41:56 -0000	1.464.2.20
+++ cust_main.pm	6 Jan 2010 04:43:49 -0000	1.464.2.21
@@ -4932,10 +4932,12 @@
   my $botpp = 'Business::OnlineThirdPartyPayment';
 
   return 1
-    if ( $conf->config('business-onlinepayment-namespace') eq $botpp ||
-         scalar( grep { $_->gateway_namespace eq $botpp } 
-                 qsearch( 'payment_gateway', { 'disabled' => '' } )
-               )
+    if (   (     $conf->exists('business-onlinepayment-namespace')
+             &&  $conf->config('business-onlinepayment-namespace') eq $botpp
+           )
+         or scalar( grep { $_->gateway_namespace eq $botpp } 
+                    qsearch( 'payment_gateway', { 'disabled' => '' } )
+                  )
        )
   ;
 



More information about the freeside-commits mailing list