We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da83544 commit 1002e1aCopy full SHA for 1002e1a
www/template/ajax/general.php
@@ -56,7 +56,7 @@
56
<div class="col-lg-6 col-md-6">
57
<div class="input-group">
58
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); } ?>' />
+ <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) : ''; ?>' />
60
<span class="input-group-addon">days</span>
61
</div>
62
0 commit comments