[Mapbender-commits] r1604 - trunk/mapbender/http/include

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 6 04:42:16 EDT 2007


Author: christoph
Date: 2007-08-06 04:42:16 -0400 (Mon, 06 Aug 2007)
New Revision: 1604

Modified:
   trunk/mapbender/http/include/dyn_css.php
   trunk/mapbender/http/include/dyn_js.php
Log:
replaced old string functions by multibyte string function

Modified: trunk/mapbender/http/include/dyn_css.php
===================================================================
--- trunk/mapbender/http/include/dyn_css.php	2007-08-06 08:34:05 UTC (rev 1603)
+++ trunk/mapbender/http/include/dyn_css.php	2007-08-06 08:42:16 UTC (rev 1604)
@@ -110,8 +110,8 @@
 	$i=-1;
 	while($row = db_fetch_array($res))
 	{
-		if (strpos($row["var_name"], "[")) {
-			$arrayname = substr($row["var_name"], 0, strpos($row["var_name"], "["));
+		if (mb_strpos($row["var_name"], "[")) {
+			$arrayname = mb_substr($row["var_name"], 0, mb_strpos($row["var_name"], "["));
 			if (!in_array($arrayname, $arrays)) {
 				$i++;
 				$arrays[$i] = $arrayname;

Modified: trunk/mapbender/http/include/dyn_js.php
===================================================================
--- trunk/mapbender/http/include/dyn_js.php	2007-08-06 08:34:05 UTC (rev 1603)
+++ trunk/mapbender/http/include/dyn_js.php	2007-08-06 08:42:16 UTC (rev 1604)
@@ -27,8 +27,8 @@
 	echo "\n";
 	while($row = db_fetch_array($res))
 	{
-		if (strpos($row["var_name"], "[")) {
-			$arrayname = substr($row["var_name"], 0, strpos($row["var_name"], "["));
+		if (mb_strpos($row["var_name"], "[")) {
+			$arrayname = mb_substr($row["var_name"], 0, mb_strpos($row["var_name"], "["));
 			
 			if (!in_array($arrayname, $arrays)) {
 				$i++;



More information about the Mapbender_commits mailing list