Ignore:
Timestamp:
Nov 30, 2009, 10:14:50 PM (11 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager] Pre 2.13

  • Bug 1246 fixed - Extended Description tags are working again ! Caution : The language used and saved in database is the one configured by default in the visitor's browser and not the language given by Language Switch.
  • Adding of round() for calculating the number of days between two visits.
  • FR and EN language files refactoring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UserAdvManager_admin.php

    r4380 r4399  
    575575      if (isset($conf_nbc_UserAdvManager[17]) and $conf_nbc_UserAdvManager[17]=='true' and $conf_nbc_UserAdvManager[18] <> '')
    576576      {
    577         if ((($deltadays*100)/$conf_nbc_UserAdvManager[18]) <= ((50*$conf_nbc_UserAdvManager[18])/100))
     577        if (round((($deltadays*100)/$conf_nbc_UserAdvManager[18]), 0) <= round(((50*$conf_nbc_UserAdvManager[18])/100), 0))
    578578        {
    579579          $display = 'green';
    580580        }
    581581       
    582         if ((($deltadays*100)/$conf_nbc_UserAdvManager[18]) > ((50*$conf_nbc_UserAdvManager[18])/100) and (($deltadays*100)/$conf_nbc_UserAdvManager[18]) < ((100*$conf_nbc_UserAdvManager[18])/100))
     582        if (round((($deltadays*100)/$conf_nbc_UserAdvManager[18]), 0) > round(((50*$conf_nbc_UserAdvManager[18])/100), 0) and round((($deltadays*100)/$conf_nbc_UserAdvManager[18]),0) < round(((100*$conf_nbc_UserAdvManager[18])/100),0))
    583583        {
    584584          $display = 'orange';
    585585        }
    586586       
    587         if ((($deltadays*100)/$conf_nbc_UserAdvManager[18]) >= ((100*$conf_nbc_UserAdvManager[18])/100))
     587        if (round((($deltadays*100)/$conf_nbc_UserAdvManager[18]), 0) >= round(((100*$conf_nbc_UserAdvManager[18])/100),0 ))
    588588        {
    589589          $display = 'red';
Note: See TracChangeset for help on using the changeset viewer.