diff --git a/base/classes/webform/TGrid.class.php b/base/classes/webform/TGrid.class.php index ee9d3fd3..a3c46124 100644 --- a/base/classes/webform/TGrid.class.php +++ b/base/classes/webform/TGrid.class.php @@ -2000,14 +2000,13 @@ public function addNumberColumn( $strName, $strTitle = null, $strFieldName = nul * @return TGridCheckColumn */ public function addCheckColumn( string $strName - , string $strTitle = null - , $strKeyField - , $strDescField = null - , $boolReadOnly = null - , $boolAllowCheckAll = null ) + , string $strTitle = null + , $strKeyField + , $strDescField = null + , $boolReadOnly = null + , $boolAllowCheckAll = null ) { - if ( !$strKeyField ) - { + if ( !$strKeyField ){ $strKeyField = strtoupper( $strName ); } $col = new TGridCheckColumn( $strName, $strTitle, $strKeyField, $strDescField, $boolReadOnly, $boolAllowCheckAll );