Unverified Commit b53c8344 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(management) Sonar fix: avoid var name collision

issue #6054
Showing with 8 additions and 8 deletions
+8 -8
......@@ -58,15 +58,15 @@ class PropertiesColumn extends Column
function renderCell (ListingEntry $entry): string
{
$tabs = $this->computeIcons($entry);
$result = '';
foreach ($tabs as $tab) {
if (empty($tab['icon'])) {
$result .= '<img src="images/empty.png" alt="" class="optional '.$tab['tab'].'"/>';
$tabInfos = $this->computeIcons($entry);
$result = '';
foreach ($tabInfos as $tabInfo) {
if (empty($tabInfo['icon'])) {
$result .= '<img src="images/empty.png" alt="" class="optional '.$tabInfo['tab'].'"/>';
} else {
$result .= '<input type="image" src="'.htmlentities($tab['icon'], ENT_COMPAT, 'UTF-8').'" '.
'alt="'.htmlentities($tab['title'], ENT_COMPAT, 'UTF-8').'" title="'.htmlentities($tab['title'], ENT_COMPAT, 'UTF-8').'" '.
'name="listing_edit_tab_'.$tab['tab'].'_'.$entry->row.'"/>';
$result .= '<input type="image" src="'.htmlentities($tabInfo['icon'], ENT_COMPAT, 'UTF-8').'" '.
'alt="'.htmlentities($tabInfo['title'], ENT_COMPAT, 'UTF-8').'" title="'.htmlentities($tabInfo['title'], ENT_COMPAT, 'UTF-8').'" '.
'name="listing_edit_tab_'.$tabInfo['tab'].'_'.$entry->row.'"/>';
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment