]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Countless fixes, ext-grade started:
[mailer.git] / inc / functions.php
index d8f842c1f4194d7954f5cddc520fe3e7b1b0f87b..4b5a7854cb2599f803b96b4338143a1369765860 100644 (file)
@@ -2360,6 +2360,19 @@ function getReferalId () {
        return $GLOBALS['refid'];
 }
 
+// Converts a boolean variable into 'Y' for true and 'N' for false
+function convertBooleanToYesNo ($boolean) {
+       // Default is 'N'
+       $converted = 'N';
+       if ($boolean === true) {
+               // Set 'Y'
+               $converted = 'Y';
+       } // END - if
+
+       // Return it
+       return $converted;
+}
+
 //-----------------------------------------------------------------------------
 // Automatically re-created functions, all taken from user comments on www.php.net
 //-----------------------------------------------------------------------------