[TEP-COMMIT] CVS: catalog/catalog checkout_confirmation.php,1.143,1.144
cvs-OfajU3CKLf1/[email protected] Thu, 18 Mar 2004 11:34:18 +0100
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /pack/cvsroots/oscommerce/catalog/catalog
In directory sunsite.dk:/tmp/cvs-serv10379
Modified Files:
checkout_confirmation.php
Log Message:
Fix bug 1651 where comments were not getting removed
Index: checkout_confirmation.php
===================================================================
RCS file: /pack/cvsroots/oscommerce/catalog/catalog/checkout_confirmation.php,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- checkout_confirmation.php 2003/12/18 23:52:14 1.143
+++ checkout_confirmation.php 2004/03/18 10:32:52 1.144
@@ -41,7 +41,9 @@
}
$payment =& $osC_Session->value('payment');
- if (tep_not_null($_POST['comments'])) {
+ if ( (isset($_POST['comments'])) && ($osC_Session->exists('comments')) && (empty($_POST['comments'])) ) {
+ $osC_Session->remove('comments');
+ } else if (tep_not_null($_POST['comments'])) {
$osC_Session->set('comments', tep_db_prepare_input($_POST['comments']));
}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click