[freeside-commits] freeside/FS/FS cust_main.pm,1.490,1.491

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


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

Modified Files:
	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.490
retrieving revision 1.491
diff -u -d -r1.490 -r1.491
--- cust_main.pm	6 Jan 2010 04:41:50 -0000	1.490
+++ cust_main.pm	6 Jan 2010 04:43:46 -0000	1.491
@@ -5043,10 +5043,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