File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,12 @@ public function viewAction(int $errorId): Response
117
117
case 'judgehost ' :
118
118
// Judgehosts get disabled by their hostname, so we need to look it up here.
119
119
$ judgehost = $ this ->em ->getRepository (Judgehost::class)->findOneBy (['hostname ' => $ disabled ['hostname ' ]]);
120
- $ affectedLink = $ this ->generateUrl ('jury_judgehost ' , ['judgehostid ' => $ judgehost ->getJudgehostid ()]);
121
120
$ affectedText = $ disabled ['hostname ' ];
121
+ if ($ judgehost ) {
122
+ $ affectedLink = $ this ->generateUrl ('jury_judgehost ' , ['judgehostid ' => $ judgehost ->getJudgehostid ()]);
123
+ } else {
124
+ $ affectedText .= ' (deleted) ' ;
125
+ }
122
126
break ;
123
127
case 'language ' :
124
128
$ affectedLink = $ this ->generateUrl ('jury_language ' , ['langId ' => $ disabled ['langid ' ]]);
Original file line number Diff line number Diff line change 72
72
{% if affectedText is not null %}
73
73
<tr >
74
74
<th >Affected {{ internalError .disabled .kind }}</th >
75
- <td ><a href =" {{ affectedLink }}" >{{ affectedText }}</a ></td >
75
+ <td >
76
+ {% if affectedLink %}
77
+ <a href =" {{ affectedLink }}" >{{ affectedText }}</a >
78
+ {% else %}
79
+ {{ affectedText }}
80
+ {% endif %}
81
+ </td >
76
82
</tr >
77
83
{% endif %}
78
84
<tr >
You can’t perform that action at this time.
0 commit comments