Revision: 1700
http://mrbs.svn.sourceforge.net/mrbs/?rev=1700&view=rev
Author: jberanek
Date: 2010-12-13 23:32:36 +0000 (Mon, 13 Dec 2010)
Log Message:
-----------
- Fixed the new utf8_strlen().
Modified Paths:
--------------
mrbs/branches/ics_attachments/web/language.inc
Modified: mrbs/branches/ics_attachments/web/language.inc
===================================================================
--- mrbs/branches/ics_attachments/web/language.inc 2010-12-13 23:21:37 UTC
(rev 1699)
+++ mrbs/branches/ics_attachments/web/language.inc 2010-12-13 23:32:36 UTC
(rev 1700)
@@ -952,7 +952,11 @@
// string
function utf8_strlen($str)
{
- $len = 0;
+ if (!isset($str) || ($str == ""))
+ {
+ return 0;
+ }
+ $len = 1;
$next = 0;
while ($next = utf8_next_index($str, $next))
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits