]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Fix for surfbar if code length is zero
[mailer.git] / inc / functions.php
index d9a2388fcb08bff8c790d39f182ef296fb475c5c..59e8c8c4a9d556b0bdd13fc09e0daa10003af04b 100644 (file)
@@ -1182,6 +1182,7 @@ function GEN_RANDOM_CODE($length, $code, $uid, $DATA="") {
 
        // At least 10 numbers shall be secure enought!
        $len = $_CONFIG['code_length'];
+       if ($len == 0) $len = $length;
        if ($len == 0) $len = 10;
 
        // Cut off requested counts of number