aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/private/autojudging.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/private/autojudging.php b/src/private/autojudging.php
index 8843fe9..5c1acc8 100755
--- a/src/private/autojudging.php
+++ b/src/private/autojudging.php
@@ -283,9 +283,10 @@ while(42) {
}
}
}
- if(is_dir($dir . $ds . "problemdatalocal" . $ds . "output"))
+ if(is_dir($dir . $ds . "problemdatalocal" . $ds . "output")) {
$s = file_get_contents($flocal);
- else
+ @copy($flocal, $dir . $ds . $run["inputname"]);
+ } else
$s = file_get_contents($dir . $ds . $run["inputname"]);
cleardir($dir . $ds . "problemdata");