Skip to content

Commit 1002e1a

Browse files
authored
Update general.php
1 parent da83544 commit 1002e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/template/ajax/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<div class="col-lg-6 col-md-6">
5757
<div class="input-group">
5858

59-
<input class="form-control" type='text' name='G_MAX_RECORD_AGE' value='<?php if (isset($global_settings->data['G_MAX_RECORD_AGE'])) { echo $global_settings->data['G_MAX_RECORD_AGE'] / (60 * 60 * 24); } ?>' />
59+
<input class="form-control" type='text' name='G_MAX_RECORD_AGE' value='<?php echo !empty($global_settings->data['G_MAX_RECORD_AGE']) ? intval($global_settings->data['G_MAX_RECORD_AGE']) / (60 * 60 * 24) : ''; ?>' />
6060
<span class="input-group-addon">days</span>
6161
</div>
6262

0 commit comments

Comments
 (0)