From 2a222baca87aef60789ff9e4251c32f8d7d489e4 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 5 Jan 2018 03:33:14 +0000 Subject: [PATCH] lib/php/db/table.php --- lib/php/db/table.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index a8694ea6..52816fa7 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1501,7 +1501,11 @@ Class Table extends nb { $this->__rows_table_attr = []; foreach ($fields as $name => $f) { $this->__rows_table_attr[$name] = '' - . ' class="' . $name . ($f->key?' key':'') . (isset($this->extras[$name])?' extra':'') . ' ' . preg_replace('/\W.*$/','',$f->type).'"' + . ' class="' . $name + . ($f->key ? ' key' : '') + . (isset($this->extras[$name]) ? ' extra' : '') + . ' ' . preg_replace('/\W.*$/','',$f->type) + .'"' ; } -- 2.47.3