From: Nicolas Boisselier Date: Fri, 5 Jan 2018 03:33:14 +0000 (+0000) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=2a222baca87aef60789ff9e4251c32f8d7d489e4;p=nb.git lib/php/db/table.php --- 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) + .'"' ; }