1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Don't print query in edit

This commit is contained in:
Jakub Vrana
2014-01-10 21:32:07 -08:00
parent dbf5eede9d
commit 2ecff21280
7 changed files with 19 additions and 19 deletions

View File

@@ -1041,18 +1041,17 @@ function select_value($val, $link, $field, $text_length) {
);
}
}
$val = $adminer->editVal($val, $field);
if ($val !== null) {
if ($val === "") { // === - may be int
$val = " ";
} elseif ($text_length != "" && is_shortable($field)) {
$val = shorten_utf8($val, max(0, +$text_length)); // usage of LEFT() would reduce traffic but complicate query - expected average speedup: .001 s VS .01 s on local network
$return = $adminer->editVal($val, $field);
if ($return !== null) {
if ($return === "") { // === - may be int
$return = " ";
} elseif ($text_length != "" && is_shortable($field) && is_utf8($return)) {
$return = shorten_utf8($return, max(0, +$text_length)); // usage of LEFT() would reduce traffic but complicate query - expected average speedup: .001 s VS .01 s on local network
} else {
$val = h($val);
$return = h($return);
}
}
$val = $adminer->selectVal($val, $link, $field);
return $val;
return $adminer->selectVal($return, $link, $field, $val);
}
/** Check whether the string is e-mail address