aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-05 18:44:36 -0700
committerfriendica <info@friendica.com>2012-04-05 18:44:36 -0700
commit221726392e6ec836623f83320c3ff9afdc876045 (patch)
tree7e2e29cff6d9edc45aa74ed3a0725a10533c2a1f /include
parent053048af107d2861d1ebb2063adc2958eb6cfdd9 (diff)
downloadvolse-hubzilla-221726392e6ec836623f83320c3ff9afdc876045.tar.gz
volse-hubzilla-221726392e6ec836623f83320c3ff9afdc876045.tar.bz2
volse-hubzilla-221726392e6ec836623f83320c3ff9afdc876045.zip
pass autoname(0) test
Diffstat (limited to 'include')
-rw-r--r--include/text.php3
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';