diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 14:57:04 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 14:57:04 +0000 |
| commit | b0d6fa038a74d283db89f7967a1875c3ff9108c7 (patch) | |
| tree | 8801dd4eefe6eee1796e83f787c89115619b4a85 /src/frun.php | |
| parent | bef504f0af12761ea6e12d58f9fc23c39e54b90a (diff) | |
| download | boca-b0d6fa038a74d283db89f7967a1875c3ff9108c7.tar.gz boca-b0d6fa038a74d283db89f7967a1875c3ff9108c7.zip | |
fix warning
Diffstat (limited to 'src/frun.php')
| -rw-r--r-- | src/frun.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frun.php b/src/frun.php index 5977fdf..f9b9c23 100644 --- a/src/frun.php +++ b/src/frun.php @@ -913,8 +913,8 @@ function DBNewRun($param,$c=null) { "autostdout=$oid1, autostderr=$oid2 " . "where runnumber=$runnumber and contestnumber=$contest and runsitenumber=$site", "DBNewRun(update run)"); - if(is_numeric($oldoid1)) DB_lo_unlink($c,$oldoid1); - if(is_numeric($oldoid2)) DB_lo_unlink($c,$oldoid2); + if(isset($oldoid1) && is_numeric($oldoid1)) DB_lo_unlink($c,$oldoid1); + if(isset($oldoid2) && is_numeric($oldoid2)) DB_lo_unlink($c,$oldoid2); } if($cw) DBExec($c, "commit work", "DBNewRun(commit-update)"); } |