diff options
author | Michal Čihař <michal@cihar.com> | 2016-01-19 13:31:41 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-01-19 13:31:41 +0300 |
commit | 0f119bb3293273c75f7f30d844cf764822cc8eee (patch) | |
tree | c8fb57f13df98d22fd1c0499968a2fef9abe28a7 /gis_data_editor.php | |
parent | 8e99da9685ee728b39d8e998c61b15e1df17659a (diff) | |
parent | 76e003a8cb53115ed301f0e42cc53f735ec14216 (diff) |
Merge branch 'QA_4_5'
Diffstat (limited to 'gis_data_editor.php')
-rw-r--r-- | gis_data_editor.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gis_data_editor.php b/gis_data_editor.php index d38db8d319..7268724128 100644 --- a/gis_data_editor.php +++ b/gis_data_editor.php @@ -23,6 +23,10 @@ function escape($variable) require_once 'libraries/common.inc.php'; +if (! isset($_REQUEST['field'])) { + PMA\libraries\Util::checkParameters(array('field')); +} + // Get data if any posted $gis_data = array(); if (PMA_isValid($_REQUEST['gis_data'], 'array')) { @@ -180,6 +184,9 @@ if ($geom_type == 'GEOMETRYCOLLECTION') { } for ($a = 0; $a < $geom_count; $a++) { + if (! isset($gis_data[$a])) { + continue; + } if ($geom_type == 'GEOMETRYCOLLECTION') { echo '<br/><br/>'; |