]> git.mxchange.org Git - friendica.git/commitdiff
pass autoname(0) test
authorfriendica <info@friendica.com>
Fri, 6 Apr 2012 01:44:36 +0000 (18:44 -0700)
committerfriendica <info@friendica.com>
Fri, 6 Apr 2012 01:44:36 +0000 (18:44 -0700)
include/text.php

index 5456b5ad3e5a1248d5b6572a3a2bf114b8dfbc0d..29c781030dd8142d065b5736c6b32e0987c6ae86 100644 (file)
@@ -80,6 +80,9 @@ function escape_tags($string) {
 if(! function_exists('autoname')) {
 function autoname($len) {
 
+       if(! $len)
+               return '';
+
        $vowels = array('a','a','ai','au','e','e','e','ee','ea','i','ie','o','ou','u'); 
        if(mt_rand(0,5) == 4)
                $vowels[] = 'y';