diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-11-10 11:21:57 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-11-10 11:21:57 +0000 |
| commit | a4f47ee2b4c878be02960fde01c591fff6dfe7b6 (patch) | |
| tree | 587fb1f1c6b1add819faef669ab748cde66a5bbe /src/judge | |
| parent | 34c35d033703a57d42a75c4234209a222a65e6d6 (diff) | |
| download | boca-a4f47ee2b4c878be02960fde01c591fff6dfe7b6.tar.gz boca-a4f47ee2b4c878be02960fde01c591fff6dfe7b6.zip | |
bf
Diffstat (limited to 'src/judge')
| -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>"; } |