Skip to content

Commit

Permalink
display award event name to disambiguate category
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargaj committed Jan 1, 2024
1 parent fb6a616 commit 9343ae8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion account.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ function LoadFromDB()
}
function Render()
{
global $AWARDSSUGGESTIONS_EVENTS;
global $AWARDSSUGGESTIONS_CATEGORIES;
if (!$this->votes)
{
Expand All @@ -524,8 +525,11 @@ function Render()
echo " </tr>\n";
foreach($this->votes as $v)
{
$category = $AWARDSSUGGESTIONS_CATEGORIES[$v->categoryID];
$event = $AWARDSSUGGESTIONS_EVENTS[$category->eventID];

echo " <tr>\n";
echo " <td>"._html($AWARDSSUGGESTIONS_CATEGORIES[$v->categoryID]->name)."</td>\n";
echo " <td>"._html($event->name)." "._html($category->name)."</td>\n";
echo " <td>".$v->prod->RenderSingleRowShort(). "</td>\n";
echo " </tr>\n";
}
Expand Down

0 comments on commit 9343ae8

Please sign in to comment.