Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 1da29fd

Browse files
committed
Deleted problem's submitted solutions will also be removed from the database.
Fixes #7
1 parent de31736 commit 1da29fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

admin/update.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
// delete an existing problem
7373
$query="DELETE FROM problems WHERE sl=".$_GET['id'];
7474
mysql_query($query);
75+
$query="DELETE FROM solve WHERE problem_id=".$_GET['id'];
76+
mysql_query($query);
7577
header("Location: problems.php?deleted=1");
7678
} else if($_GET['action']=='ban') {
7779
// ban a user from the event

0 commit comments

Comments
 (0)