Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 2341 → Rev 2342

/web/acc/manager/lib/sql/change_attrs.php
26,7 → 26,6
$name = $attrmap["$key"] . $i;
while(isset($$name)){
$val=$$name;
$val = da_sql_escape_string($link, $val);
$op_name = $name . '_op';
$i++;
$j++;
79,10 → 78,10
continue;
// if value differs from the sql value then update
else{
if (isset($item_vals["$key"][$j]) && (isset($old_val) && $old_val !='') || $sql_attr=='Filter-Id'){
if (isset($item_vals["$key"][$j]) && (isset($old_val) && $old_val !='') && $sql_attr=='Filter-Id'){
$old_val = $item_vals["$key"][$j];
$old_val = da_sql_escape_string($link, $old_val);
#we keep the fourth bit of Filter-Id to warn user about administrator who read imputability logs.
// we keep the fourth bit of Filter-Id to warn user about administrator who read imputability logs.
$val[3]=$old_val[3];
$res = da_sql_query($link,$config,
"UPDATE $table SET value = '$val' WHERE $query_key = '$login' AND