diff options
author | friendica <info@friendica.com> | 2012-04-05 18:44:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-05 18:44:36 -0700 |
commit | 221726392e6ec836623f83320c3ff9afdc876045 (patch) | |
tree | 7e2e29cff6d9edc45aa74ed3a0725a10533c2a1f | |
parent | 053048af107d2861d1ebb2063adc2958eb6cfdd9 (diff) | |
download | volse-hubzilla-221726392e6ec836623f83320c3ff9afdc876045.tar.gz volse-hubzilla-221726392e6ec836623f83320c3ff9afdc876045.tar.bz2 volse-hubzilla-221726392e6ec836623f83320c3ff9afdc876045.zip |
pass autoname(0) test
-rw-r--r-- | include/text.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 5456b5ad3..29c781030 100644 --- a/include/text.php +++ b/include/text.php @@ -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'; |