diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2011-08-09 22:53:43 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2011-08-09 22:53:43 +0400 |
commit | b67c913fadc71fec51d139d96cf5afe98656db1f (patch) | |
tree | b358a7e0596dfff4315f3c2976d1903742a67f51 /gis_data_editor.php | |
parent | 84f2882bbf19dd8f1eec3b81a29a3eecb63b2af2 (diff) |
Avoid undefined variable notice.
Diffstat (limited to 'gis_data_editor.php')
-rw-r--r-- | gis_data_editor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gis_data_editor.php b/gis_data_editor.php index 417f7fb187..d016b510fd 100644 --- a/gis_data_editor.php +++ b/gis_data_editor.php @@ -33,7 +33,7 @@ if (! isset($gis_data['gis_type'])) { $start = (substr($_REQUEST['value'], 0, 1) == "'") ? 1 : 0; $gis_data['gis_type'] = substr($_REQUEST['value'], $start, strpos($_REQUEST['value'], "(") - $start); } - if(! in_array($gis_data['gis_type'], $gis_types)) { + if((! isset($gis_data['gis_type'])) || (! in_array($gis_data['gis_type'], $gis_types))) { $gis_data['gis_type'] = $gis_types[0]; } } |