Skip to content

Commit

Permalink
Merge branch 'MDL-77223' of https://github.com/roland04/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Feb 15, 2023
2 parents 03128a7 + 96215ab commit 98055a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reportbuilder/classes/table/custom_report_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public function get_row_cells_html(string $rowid, array $row, ?array $suppressla
$buttonicon = html_writer::tag('i', '', ['class' => 'fa fa-angle-down']);

// We need a cleaned version (without tags/entities) of the first row column to use as toggle button.
$rowfirstcolumn = strip_tags(reset($row));
$rowfirstcolumn = strip_tags((string) reset($row));
$buttontitle = $rowfirstcolumn !== ''
? get_string('showhide', 'core_reportbuilder', html_entity_decode($rowfirstcolumn, ENT_COMPAT))
: get_string('showhidecard', 'core_reportbuilder');
Expand Down

0 comments on commit 98055a3

Please sign in to comment.