Permalink
Browse files

MDL-27108: Fix invalid SQL syntax in mod/data/field/latlong

  • Loading branch information...
1 parent fb8642b commit 697664c813816a353f6a6c9023fb4520464fbf61 @tlevi tlevi committed Apr 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/field/latlong/mod.html
@@ -29,7 +29,7 @@
<option value="-2"<?php if($this->field->param2==-2) echo ' selected="selected"' ?>><?php echo get_string('latitude', 'data').'/'.get_string('longitude', 'data') ?></option>
<?php
// Fetch all "suitable" other fields that exist for this database
- $textfields = get_records_select('data_fields', 'dataid='.$this->data->id.' AND type="text"');
+ $textfields = get_records_select('data_fields', 'dataid='.$this->data->id." AND type='text'");
echo '<optgroup label="'.get_string('latlongotherfields', 'data').':">';
if(sizeof($textfields)>0) {
foreach($textfields as $textfield) {

0 comments on commit 697664c

Please sign in to comment.