fixing SQL error

skala
Julio Montoya 12 years ago
parent 08dea70ca3
commit f360481b4e
  1. 2
      main/link/link.php

@ -324,7 +324,7 @@ if (api_is_allowed_to_edit(null, true) && isset($_GET['action'])) {
foreach ($specific_fields as $specific_field) {
$default_values = '';
if ($_GET['action'] == 'editlink') {
$filter = array('c_id'=> "'". api_get_course_int_id() ."'", 'field_id' => $specific_field['id'], 'ref_id' => Security::remove_XSS($_GET['id']), 'tool_id' => '\''. TOOL_LINK .'\'');
$filter = array('field_id' => $specific_field['id'], 'ref_id' => intval($_GET['id']), 'tool_id' => '\''. TOOL_LINK .'\'');
$values = get_specific_field_values_list($filter, array('value'));
if (!empty($values)) {
$arr_str_values = array();

Loading…
Cancel
Save