[TEP-COMMIT] [CVS catalog] check to see if a currency has been registered in the session (compatibility for the administration tool where it is not registered in the session)
anonymous-OfajU3CKLf1/[email protected] 22 Jul 2004 16:12:08 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/classes on MAIN
currencies.php +1 -1 1.20 -> 1.21
check to see if a currency has been registered in the session (compatibility for the administration tool where it is not registered in the session)
----------
catalog /catalog /includes /classes
currencies.php 1.20 -> 1.21
diff -u -r1.20 -r1.21
--- currencies.php 2004/04/16 05:31:32 1.20
+++ currencies.php 2004/07/22 16:12:07 1.21
@@ -37,7 +37,7 @@
global $osC_Session;
if (empty($currency_code) || ($this->exists($currency_code) == false)) {
- $currency_code = $osC_Session->value('currency');
+ $currency_code = ($osC_Session->exists('currency') ? $osC_Session->value('currency') : DEFAULT_CURRENCY);
}
if (empty($currency_value) || (is_numeric($currency_value) == false)) {
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click