diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/judge/runeditchief.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/judge/runeditchief.php b/src/judge/runeditchief.php index c538dca..04395ba 100644 --- a/src/judge/runeditchief.php +++ b/src/judge/runeditchief.php @@ -132,9 +132,11 @@ for ($i=0;$i<count($b);$i++) { echo $b[$i]["inputfilename"] . "</a>"; echo " <a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('../filewindow.php?". filedownload($b[$i]["inputoid"], $b[$i]["inputfilename"]) ."', 'View$i - INPUT','width=680,height=600,scrollbars=yes,resizable=yes')\">view</a> "; - - echo "<b>Sol:</b><a href=\"../filedownload.php?". filedownload($b[$i]["soloid"], $b[$i]["solfilename"]) . "\">"; - echo $b[$i]["solfilename"] . "</a>"; + + if(isset($b[$i]["soloid"])) { + echo "<b>Sol:</b><a href=\"../filedownload.php?". filedownload($b[$i]["soloid"], $b[$i]["solfilename"]) . "\">"; + echo $b[$i]["solfilename"] . "</a>"; + } echo " <a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('../filewindow.php?". filedownload($b[$i]["soloid"], $b[$i]["solfilename"]) ."', 'View$i - CORRECT OUTPUT','width=680,height=600,scrollbars=yes,resizable=yes')\">view</a>"; } |