From 221726392e6ec836623f83320c3ff9afdc876045 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Apr 2012 18:44:36 -0700 Subject: [PATCH] pass autoname(0) test --- include/text.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/text.php b/include/text.php index 5456b5ad3e..29c781030d 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';