fix(web/problem): limits default value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-12 19:09:47 +08:00
parent 4347189794
commit ff16bfbc84
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -243,8 +243,8 @@ if (UOJContest::cur()) {
</h1> </h1>
<?php <?php
$time_limit = $conf instanceof UOJProblemConf ? $conf->getVal('time_limit', null) : null; $time_limit = $conf instanceof UOJProblemConf ? $conf->getVal('time_limit', 1) : null;
$memory_limit = $conf instanceof UOJProblemConf ? $conf->getVal('memory_limit', null) : null; $memory_limit = $conf instanceof UOJProblemConf ? $conf->getVal('memory_limit', 256) : null;
?> ?>
<div class="text-center small"> <div class="text-center small">
时间限制: <?= $time_limit ? "$time_limit s" : "N/A" ?> 时间限制: <?= $time_limit ? "$time_limit s" : "N/A" ?>
@ -285,16 +285,13 @@ if (UOJContest::cur()) {
</div> </div>
<?php endif ?> <?php endif ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- End left col --> <!-- end left col -->
<!-- right col -->
<aside class="col-lg-3 mt-3 mt-lg-0"> <aside class="col-lg-3 mt-3 mt-lg-0">
<!-- Right col -->
<?php if (UOJContest::cur()) : ?> <?php if (UOJContest::cur()) : ?>
<!-- Contest card --> <!-- Contest card -->
<div class="card card-default mb-2"> <div class="card card-default mb-2">