From: <wel...@us...> - 2009-06-24 05:29:58
|
Revision: 3861 http://planeshift.svn.sourceforge.net/planeshift/?rev=3861&view=rev Author: weltall2 Date: 2009-06-24 05:29:04 +0000 (Wed, 24 Jun 2009) Log Message: ----------- fixed a bug in the assignment of data Modified Paths: -------------- www/webconsole-new/rules/locations.php Modified: www/webconsole-new/rules/locations.php =================================================================== --- www/webconsole-new/rules/locations.php 2009-06-23 20:11:49 UTC (rev 3860) +++ www/webconsole-new/rules/locations.php 2009-06-24 05:29:04 UTC (rev 3861) @@ -11,7 +11,7 @@ $z = mysql_real_escape_string($_POST['z']); $radius = mysql_real_escape_string($_POST['radius']); $angle = mysql_real_escape_string($_POST['angle']); - $id_prev_loc_in_region = mysql_real_escape_string($_POST['loc_sector_id']); + $id_prev_loc_in_region = mysql_real_escape_string($_POST['id_prev_loc_in_region']); $type_id = mysql_real_escape_string($_POST['type']); $query = "UPDATE sc_locations SET name='$name', loc_sector_id='$loc_sector_id', x='$x', y='$y', z='$z', radius='$radius', angle='$angle', id_prev_loc_in_region='$id_prev_loc_in_region', type_id='$type_id' WHERE id = '$id'"; $result = mysql_query2($query); @@ -35,7 +35,7 @@ $z = mysql_real_escape_string($_POST['z']); $radius = mysql_real_escape_string($_POST['radius']); $angle = mysql_real_escape_string($_POST['angle']); - $id_prev_loc_in_region = mysql_real_escape_string($_POST['loc_sector_id']); + $id_prev_loc_in_region = mysql_real_escape_string($_POST['id_prev_loc_in_region']); $type_id = mysql_real_escape_string($_POST['type']); $query = "INSERT INTO sc_locations SET name='$name', loc_sector_id='$loc_sector_id', x='$x', y='$y', z='$z', radius='$radius', angle='$angle', id_prev_loc_in_region='$id_prev_loc_in_region', type_id='$type_id'"; $result = mysql_query2($query); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |