Subversion Repositories ALCASAR

Rev

Rev 1838 | Rev 1879 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1838 Rev 1852
Line 53... Line 53...
53
				}
53
				}
54
			}
54
			}
55
			$sql_attr = da_sql_escape_string($link, $sql_attr);
55
			$sql_attr = da_sql_escape_string($link, $sql_attr);
56
			$val = da_sql_escape_string($link, $val);
56
			$val = da_sql_escape_string($link, $val);
57
	// if we have operators, the operator has changed and the corresponding value exists then update
57
	// if we have operators, the operator has changed and the corresponding value exists then update
58
			if ($use_ops && isset($item_vals["$key"]['operator'][$j]) &&
58
			if ($key != "Filter-Id" && $use_ops && isset($item_vals["$key"]['operator'][$j]) &&
59
				$op_val != $item_vals["$key"]['operator'][$j] ){
59
				$op_val != $item_vals["$key"]['operator'][$j] ){
60
				$res = da_sql_query($link,$config,
60
				$res = da_sql_query($link,$config,
61
				"UPDATE $table SET op = '$op_val' WHERE $query_key = '$login'
61
				"UPDATE $table SET op = '$op_val' WHERE $query_key = '$login'
62
				AND attribute = '$sql_attr' AND value = '$val';");
62
				AND attribute = '$sql_attr' AND value = '$val';");
63
				if (!$res || !da_sql_affected_rows($link,$res,$config))
63
				if (!$res || !da_sql_affected_rows($link,$res,$config))