Skip to content

Commit

Permalink
2.1.27
Browse files Browse the repository at this point in the history
Fix for #2601
  • Loading branch information
nilsteampassnet authored and nilsteampassnet committed May 30, 2019
1 parent b9cf22a commit e99658f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -2808,14 +2808,14 @@
if (empty($idManaged) === true || $idManaged !== $record['id']) {
// Get Expiration date
$expired_item = 0;
if ($SETTINGS['activate_expiration'] === '1') {
if ((int) $SETTINGS['activate_expiration'] === 1) {
if ($record['renewal_period'] > 0 &&
($record['date'] + ($record['renewal_period'] * $SETTINGS_EXT['one_month_seconds'])) < time()
) {
$html_json[$record['id']]['expiration_flag'] = "mi-red";
$expired_item = 1;
} else {
if ($record['perso'] !== '1') {
if ((int) $record['perso'] !== 1) {
$html_json[$record['id']]['expiration_flag'] = "mi-green";
} else {
$html_json[$record['id']]['expiration_flag'] = "";
Expand Down

0 comments on commit e99658f

Please sign in to comment.