is not needed with border-collapse

This commit is contained in:
Jakub Vrana
2018-02-20 16:02:25 +01:00
parent 7cb3e768bb
commit 2021ea8fd7
21 changed files with 42 additions and 52 deletions

View File

@@ -45,7 +45,7 @@ class AdminerFileUpload {
}
function selectVal($val, &$link, $field, $original) {
if ($val != " " && preg_match('~(.*)_path$~', $field["field"], $regs)) {
if ($val != "" && preg_match('~(.*)_path$~', $field["field"], $regs)) {
$link = "$this->displayPath$_GET[select]/$regs[1]-$val";
}
}

View File

@@ -21,8 +21,8 @@ class AdminerTableStructure {
echo ($field["auto_increment"] ? " <i>" . lang('Auto Increment') . "</i>" : "");
echo ($field["collation"] ? " <i>" . h($field["collation"]) . "</i>" : "");
echo "<td>" . ($field["null"] ? lang('Yes') : lang('No'));
echo "<td>" . (isset($field["default"]) ? h($field["default"]) : "&nbsp;");
echo (support("comment") ? "<td>" . nbsp($field["comment"]) : "");
echo "<td>" . h($field["default"]);
echo (support("comment") ? "<td>" . h($field["comment"]) : "");
echo "\n";
}
echo "</table>\n";

View File

@@ -39,7 +39,7 @@ tinyMCE.init({
}
function selectVal(&$val, $link, $field, $original) {
if (preg_match("~_html~", $field["field"]) && $val != '&nbsp;') {
if (preg_match("~_html~", $field["field"]) && $val != '') {
$shortened = (substr($val, -10) == "<i>...</i>");
if ($shortened) {
$val = substr($val, 0, -10);

View File

@@ -28,7 +28,7 @@ class AdminerWymeditor {
function selectVal(&$val, $link, $field, $original) {
// copied from tinymce.php
if (preg_match("~_html~", $field["field"]) && $val != '&nbsp;') {
if (preg_match("~_html~", $field["field"]) && $val != '') {
$shortened = (substr($val, -10) == "<i>...</i>");
if ($shortened) {
$val = substr($val, 0, -10);