@@ -995,7 +995,7 @@ function ($value) {
995
995
$ arrHiddenHeader ,
996
996
$ onlyRows
997
997
);
998
- } elseif ($ this ->columnTemplate != '' ) {
998
+ } elseif ($ this ->columnTemplate !== '' ) {
999
999
$ strOutput = $ this ->generateTemplateOutput (
1000
1000
$ arrUnique ,
1001
1001
$ arrDatepicker ,
@@ -1440,7 +1440,7 @@ protected function generateTable(
1440
1440
1441
1441
$ return = '' ;
1442
1442
1443
- if ($ onlyRows == false ) {
1443
+ if ($ onlyRows === false ) {
1444
1444
// Generate header fields if not all are hidden.
1445
1445
if (\count ($ this ->columnFields ) !== \count ($ arrHiddenHeader )) {
1446
1446
foreach ($ this ->columnFields as $ strKey => $ arrField ) {
@@ -1498,7 +1498,7 @@ protected function generateTable(
1498
1498
$ this ->strId
1499
1499
);
1500
1500
1501
- if ($ this ->columnTemplate == '' && isset ($ arrHeaderItems ) && \is_array ($ arrHeaderItems )) {
1501
+ if ($ this ->columnTemplate === '' && isset ($ arrHeaderItems ) && \is_array ($ arrHeaderItems )) {
1502
1502
$ return .= \sprintf ('<thead><tr>%s<th></th></tr></thead> ' , \implode ("\n " , $ arrHeaderItems ));
1503
1503
}
1504
1504
@@ -1510,29 +1510,29 @@ protected function generateTable(
1510
1510
foreach ($ arrItems as $ k => $ arrValue ) {
1511
1511
$ return .= \sprintf ('<tr data-rowId="%s"> ' , $ k );
1512
1512
foreach ($ arrValue as $ itemValue ) {
1513
- if ($ itemValue ['hide ' ] == true ) {
1513
+ if ($ itemValue ['hide ' ] === true ) {
1514
1514
$ itemValue ['tl_class ' ] .= ' hidden ' ;
1515
1515
}
1516
1516
1517
1517
$ return .= '<td '
1518
- . ($ itemValue ['valign ' ] != '' ? ' valign=" ' . $ itemValue ['valign ' ] . '" ' : '' )
1519
- . ($ itemValue ['tl_class ' ] != '' ? ' class=" ' . $ itemValue ['tl_class ' ] . '" ' : '' )
1518
+ . ($ itemValue ['valign ' ] !== '' ? ' valign=" ' . $ itemValue ['valign ' ] . '" ' : '' )
1519
+ . ($ itemValue ['tl_class ' ] !== '' ? ' class=" ' . $ itemValue ['tl_class ' ] . '" ' : '' )
1520
1520
. '> '
1521
1521
. $ itemValue ['entry ' ]
1522
1522
. '</td> ' ;
1523
1523
}
1524
1524
1525
1525
// insert buttons at the very end
1526
1526
$ return .= '<td class="operations col_last" '
1527
- . (($ this ->buttonPos != '' ) ? ' valign=" ' . $ this ->buttonPos . '" ' : '' )
1527
+ . (($ this ->buttonPos !== '' ) ? ' valign=" ' . $ this ->buttonPos . '" ' : '' )
1528
1528
. '> '
1529
1529
. $ strHidden ;
1530
1530
$ return .= $ this ->generateButtonString ($ k );
1531
1531
$ return .= '</td> ' ;
1532
1532
$ return .= '</tr> ' ;
1533
1533
}
1534
1534
1535
- if ($ onlyRows == false ) {
1535
+ if ($ onlyRows === false ) {
1536
1536
$ return .= '</tbody></table> ' ;
1537
1537
$ return .= $ this ->generateScriptBlock ($ this ->strId , $ this ->maxCount , $ this ->minCount );
1538
1538
} else {
0 commit comments