[Mapbender-commits] r1605 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 6 04:46:06 EDT 2007


Author: christoph
Date: 2007-08-06 04:46:06 -0400 (Mon, 06 Aug 2007)
New Revision: 1605

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

Modified: trunk/mapbender/http/php/mod_editGuiWms.php
===================================================================
--- trunk/mapbender/http/php/mod_editGuiWms.php	2007-08-06 08:42:16 UTC (rev 1604)
+++ trunk/mapbender/http/php/mod_editGuiWms.php	2007-08-06 08:46:06 UTC (rev 1605)
@@ -278,7 +278,7 @@
 			$myKey = explode("___", $key);
 			if($myKey[1]!="layer_parent" && $myKey[1]!='layer_id' ){
 				$sql = "UPDATE gui_layer SET ".$myKey[1]." = $1 WHERE fkey_gui_id = $2 AND fkey_layer_id = $3";
-				$v = array($val,$this_gui,str_replace("L_","",$myKey[0]));
+				$v = array($val,$this_gui,preg_replace("/L_/","",$myKey[0]));
 				$t = array('i','s','i');
 				if(!$res = db_prep_query($sql,$v,$t)){
 					echo "FEHLER in ZEILE 249";



More information about the Mapbender_commits mailing list