diff options
author | Michael Vogel <icarus@dabo.de> | 2012-04-07 18:35:29 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-04-07 18:35:29 +0200 |
commit | cb05801a9031254f5882038de07a3ee4d5f89dd0 (patch) | |
tree | 186d9d1a4c591ec23e0e5bbebd08301143b5c157 /include/text.php | |
parent | 7308dbae282194356c2e95936aecc15ea059f356 (diff) | |
parent | 0fa3b7f348c3deeb85cb5f5f9bd35ba47b0e92ee (diff) | |
download | volse-hubzilla-cb05801a9031254f5882038de07a3ee4d5f89dd0.tar.gz volse-hubzilla-cb05801a9031254f5882038de07a3ee4d5f89dd0.tar.bz2 volse-hubzilla-cb05801a9031254f5882038de07a3ee4d5f89dd0.zip |
Merge commit 'upstream/master'
Diffstat (limited to 'include/text.php')
-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..aced9e0a8 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 <= 0) + 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'; |