Skip to content

Commit

Permalink
Merge pull request #856 from melongist/master
Browse files Browse the repository at this point in the history
bs3, Contest problem error fix for admin
  • Loading branch information
zhblue authored Aug 13, 2022
2 parents 6ea1c5d + b6a4596 commit 5a8ec02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/template/bs3/problem.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
require_once("include/set_get_key.php");
echo "<a class='btn btn-success btn-sm' role='button' href=admin/problem_edit.php?id=$id&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey'].">EDIT</a>";
echo "<a class='btn btn-success btn-sm' role='button' href=javascript:phpfm(".$row['problem_id'].")>TESTDATA</a>";
if(count($used_in_contests)>0){
if($cid==0 && count($used_in_contests)>0){
echo "<hr><br>$MSG_PROBLEM_USED_IN:";
foreach($used_in_contests as $contests){
echo "<a class='label label-warning' href='contest.php?cid=". $contests[0]."'>".$contests[1]." </a><br>";
Expand Down

0 comments on commit 5a8ec02

Please sign in to comment.