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

This commit is contained in:
dave 2011-01-24 06:00:32 +00:00
parent 2813377014
commit f1c8b9919f

View File

@ -43,7 +43,26 @@ function user_page_summary_item($name, $link, $status_function, $args=array())
echo "</a>";
echo "</td><td>";
//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 "</td></tr>";
if($status != 'complete') {