Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 897a844 commit a6ae247Copy full SHA for a6ae247
1 file changed
gis_data_editor.php
@@ -23,6 +23,10 @@ function escape($variable)
23
require_once 'libraries/gis/GIS_Factory.class.php';
24
require_once 'libraries/gis/GIS_Visualization.class.php';
25
26
+if (! isset($_REQUEST['field'])) {
27
+ PMA_Util::checkParameters(array('field'));
28
+}
29
+
30
// Get data if any posted
31
$gis_data = array();
32
if (PMA_isValid($_REQUEST['gis_data'], 'array')) {
@@ -185,6 +189,9 @@ function escape($variable)
185
189
}
186
190
187
191
for ($a = 0; $a < $geom_count; $a++) {
192
+ if (! isset($gis_data[$a])) {
193
+ continue;
194
+ }
188
195
196
if ($geom_type == 'GEOMETRYCOLLECTION') {
197
echo '<br/><br/>';
0 commit comments