Skip to content

Commit dcc33fd

Browse files
authored
Update problem_import_xml.php
1 parent 7af5bac commit dcc33fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

trunk/web/admin/problem_import_xml.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,9 @@ function getAttribute($Node, $TagName,$attribute) {
9797

9898
function hasRemoteProblem($remote_oj,$remote_id) {
9999
if($remote_oj=="" || $remote_id=="")return false;
100-
$md5 = md5($title);
101100
$sql = "SELECT 1 FROM problem WHERE remote_oj=? and remote_id=?";
102101
$result = pdo_query($sql,$remote_oj,$remote_id);
103-
$rows_cnt = count($result);
104-
//echo "row->$rows_cnt";
102+
$rows_cnt = count($result);
105103
return ($rows_cnt>0);
106104
}
107105
function hasProblem($title) {

0 commit comments

Comments
 (0)