fix: table class
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-23 22:02:40 +08:00
parent 1d142f8cff
commit 51aa5605cf
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -168,9 +168,9 @@ function echoLongTable($col_names, $table_name, $cond, $tail, $header_row, $prin
$div_classes = isset($config['div_classes']) ? $config['div_classes'] : array('table-responsive'); $div_classes = isset($config['div_classes']) ? $config['div_classes'] : array('table-responsive');
$table_classes = isset($config['table_classes']) $table_classes = isset($config['table_classes'])
? $config['table_classes'] ? $config['table_classes']
: isset($REQUIRE_LIB['bootstrap5']) : (isset($REQUIRE_LIB['bootstrap5'])
? array('table', 'table-bordered', 'table-striped', 'text-center') ? array('table', 'table-bordered', 'table-striped', 'text-center')
: array('table', 'table-bordered', 'table-hover', 'table-striped', 'table-text-center'); : array('table', 'table-bordered', 'table-hover', 'table-striped', 'table-text-center'));
if (isset($config['head_pagination']) && $config['head_pagination']) { if (isset($config['head_pagination']) && $config['head_pagination']) {
echo $pag->pagination(); echo $pag->pagination();