pass autoname(0) test

This commit is contained in:
friendica 2012-04-05 18:44:36 -07:00
parent 053048af10
commit 221726392e
1 changed files with 3 additions and 0 deletions

View File

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