File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 ' ] = "" ;
You can’t perform that action at this time.
0 commit comments