logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[TEP-COMMIT] CVS: catalog/catalog/includes/classes payment.php,1.33,1.34: msg#00023

Subject: [TEP-COMMIT] CVS: catalog/catalog/includes/classes payment.php,1.33,1.34
Update of /cvsroot/tep/catalog/catalog/includes/classes
In directory sc8-pr-cvs1:/tmp/cvs-serv13320/includes/classes

Modified Files:
        payment.php 
Log Message:
only count the current enabled modules (as payment modules can be disabled
realtime)


Index: payment.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/classes/payment.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- payment.php 23 Nov 2002 02:29:39 -0000      1.33
+++ payment.php 10 Jan 2003 20:35:03 -0000      1.34
@@ -45,7 +45,7 @@
 // if there is only one payment method, select it as default because in
 // checkout_confirmation.php the $payment variable is being assigned the
 // $HTTP_POST_VARS['payment'] value which will be empty (no radio button 
selection possible)
-        if ( (sizeof($this->modules) == 1) && (!is_object($GLOBALS[$payment])) 
) {
+        if ( (tep_count_payment_modules() == 1) && 
(!is_object($GLOBALS[$payment])) ) {
           $payment = $include_modules[0]['class'];
         }
 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com


<Prev in Thread] Current Thread [Next in Thread>