From 9343ae8d1c0800392a8986bf8217266f70097350 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Mon, 1 Jan 2024 13:44:19 +0100 Subject: [PATCH] display award event name to disambiguate category --- account.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/account.php b/account.php index a794c16..85693a7 100644 --- a/account.php +++ b/account.php @@ -509,6 +509,7 @@ function LoadFromDB() } function Render() { + global $AWARDSSUGGESTIONS_EVENTS; global $AWARDSSUGGESTIONS_CATEGORIES; if (!$this->votes) { @@ -524,8 +525,11 @@ function Render() echo " \n"; foreach($this->votes as $v) { + $category = $AWARDSSUGGESTIONS_CATEGORIES[$v->categoryID]; + $event = $AWARDSSUGGESTIONS_EVENTS[$category->eventID]; + echo " \n"; - echo " "._html($AWARDSSUGGESTIONS_CATEGORIES[$v->categoryID]->name)."\n"; + echo " "._html($event->name)." "._html($category->name)."\n"; echo " ".$v->prod->RenderSingleRowShort(). "\n"; echo " \n"; }