Skip to content

Commit e99658f

Browse files
nilsteampassnetnilsteampassnet
authored andcommitted
2.1.27
Fix for #2601
1 parent b9cf22a commit e99658f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/items.queries.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,14 +2808,14 @@
28082808
if (empty($idManaged) === true || $idManaged !== $record['id']) {
28092809
// Get Expiration date
28102810
$expired_item = 0;
2811-
if ($SETTINGS['activate_expiration'] === '1') {
2811+
if ((int) $SETTINGS['activate_expiration'] === 1) {
28122812
if ($record['renewal_period'] > 0 &&
28132813
($record['date'] + ($record['renewal_period'] * $SETTINGS_EXT['one_month_seconds'])) < time()
28142814
) {
28152815
$html_json[$record['id']]['expiration_flag'] = "mi-red";
28162816
$expired_item = 1;
28172817
} else {
2818-
if ($record['perso'] !== '1') {
2818+
if ((int) $record['perso'] !== 1) {
28192819
$html_json[$record['id']]['expiration_flag'] = "mi-green";
28202820
} else {
28212821
$html_json[$record['id']]['expiration_flag'] = "";

0 commit comments

Comments
 (0)