[Phpfreechat-svn] SF.net SVN: phpfreechat: [851] trunk/src/pfcglobalconfig.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-10-29 14:41:29
|
Revision: 851 http://svn.sourceforge.net/phpfreechat/?rev=851&view=rev Author: kerphi Date: 2006-10-29 06:34:37 -0800 (Sun, 29 Oct 2006) Log Message: ----------- fix a problem with empty nicknames (the nickname was initiated with 'false' string) Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-10-29 11:20:55 UTC (rev 850) +++ trunk/src/pfcglobalconfig.class.php 2006-10-29 14:34:37 UTC (rev 851) @@ -606,7 +606,7 @@ { $nickname = trim($nickname); require_once dirname(__FILE__)."/../lib/utf8/utf8_substr.php"; - $nickname = utf8_substr($nickname, 0, $this->max_nick_len); + $nickname = (string)utf8_substr($nickname, 0, $this->max_nick_len); return $nickname; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |