Skip to content

Commit

Permalink
Fix repeated require.
Browse files Browse the repository at this point in the history
  • Loading branch information
codgician committed Jun 10, 2017
1 parent 7b5f0aa commit 4c2bfc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/public/func/contest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function update_cont_rank($cont_id){
//Update contest score.
function update_cont_scr($cont_id){
require __DIR__.'/../../src/database.php';
require __DIR__.'/../../config/config.php';
require_once __DIR__.'/../../config/config.php';

$row=mysqli_fetch_row(mysqli_query($con, "select start_time,end_time,judge_way from contest where contest_id=$cont_id limit 1"));
$cont_start=$row[0];
Expand Down

0 comments on commit 4c2bfc5

Please sign in to comment.