]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-order.php
The usual changes: forms fixed
[mailer.git] / inc / modules / member / what-order.php
index 16eb57d7a2afd0f2dee71c34f07e3ef5057c6848..f4799ce3be7c9ecf4db27ac19258c0f1ebda932e 100644 (file)
@@ -100,7 +100,7 @@ LIMIT 1",
                        } // END - if
 
                        // Remove new-line and carriage-return characters
-                       $TEST = str_replace(array(chr(10), chr(13)), array('', ''), postRequestElement('text'));
+                       $TEST = str_replace(array(PHP_EOL, chr(13)), array('', ''), postRequestElement('text'));
 
                        // Text length within allowed length?
                        if (strlen($TEST) > getConfig('max_tlength')) {
@@ -674,7 +674,7 @@ LIMIT 1",
                                        // Default is no ZIP code
                                        $content['zip_content'] = '';
 
-                                       // Do we want ZIP code or not?
+                                       // Is sending to ZIP code enabled? (logged-in admin can always send to it)
                                        if ((isOrderMultiPageEnabled()) || (isAdmin())) {
                                                // Yes
                                                if (postRequestElement('zip') > 0) {