From f1c8b9919fe1837723b357f7483dac8dc4494885 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 24 Jan 2011 06:00:32 +0000 Subject: [PATCH] Hack to get around upgraded version of PHP not accepting pass-by-reference that isn't explicitly stated on both sides. This allows judge registration to complete --- user_page.inc.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/user_page.inc.php b/user_page.inc.php index 0819077..907fd00 100644 --- a/user_page.inc.php +++ b/user_page.inc.php @@ -43,7 +43,26 @@ function user_page_summary_item($name, $link, $status_function, $args=array()) echo ""; echo ""; //check to see if its complete - $status=call_user_func_array($status_function, $args); + switch($status_function) { + case 'user_personal_info_status': + $status = user_personal_info_status(&$args[0]); + break; + case 'judge_status_other': + $status = judge_status_other(&$args[0]); + break; + case 'judge_status_expertise': + $status = judge_status_expertise(&$args[0]); + break; + case 'judge_status_availability': + $status = judge_status_availability(&$args[0]); + break; + case 'judge_status_special_awards': + $status = judge_status_special_awards(&$args[0]); + break; + default: + $status=call_user_func_array($status_function, $args); + break; + } echo outputStatus($status); echo ""; if($status != 'complete') {