Skip to content

Commit

Permalink
Fix php error
Browse files Browse the repository at this point in the history
  • Loading branch information
manzurahammed committed Jun 23, 2022
1 parent af95715 commit 4431dd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/Elements/Data_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1260,12 +1260,11 @@ protected function render( ) {
$nofollow = !empty($content_row['eael_data_table_content_row_title_link']['nofollow']) ? 'rel="nofollow"' : '';

$table_tr_keys = array_keys( $table_tr );
$last_key = end( $table_tr_keys );

$last_key = end( $table_tr_keys );
$tbody_content = ($content_row['eael_data_table_content_type'] == 'editor') ? $content_row['eael_data_table_content_row_content'] : Helper::eael_wp_kses($content_row['eael_data_table_content_row_title']);

$table_td[] = [
'row_id' => $table_tr[$last_key]['id'],
'row_id' => !empty( $table_tr[$last_key]['id'] ) ? $table_tr[$last_key]['id'] : $row_id,
'type' => $content_row['eael_data_table_content_row_type'],
'content_type' => $content_row['eael_data_table_content_type'],
'template' => $content_row['eael_primary_templates_for_tables'],
Expand Down

0 comments on commit 4431dd0

Please sign in to comment.