Ignore:
Timestamp:
Dec 21, 2009, 6:31:54 PM (11 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]

  • Bug 1342 fixed - Calculation between last visit and today is ok and displays the good color in user list.
File:
1 edited

Legend:

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

    r4430 r4544  
    576576      if (isset($conf_nbc_UserAdvManager[17]) and $conf_nbc_UserAdvManager[17]=='true' and $conf_nbc_UserAdvManager[18] <> '')
    577577      {
    578         if (round((($deltadays*100)/$conf_nbc_UserAdvManager[18]), 0) <= round(((50*$conf_nbc_UserAdvManager[18])/100), 0))
     578        if ($deltadays <= ($conf_nbc_UserAdvManager[18]/2))
    579579        {
    580580          $display = 'green';
    581581        }
    582582       
    583         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))
     583        if (($deltadays > ($conf_nbc_UserAdvManager[18]/2)) and ($deltadays < $conf_nbc_UserAdvManager[18]))
    584584        {
    585585          $display = 'orange';
    586586        }
    587587       
    588         if (round((($deltadays*100)/$conf_nbc_UserAdvManager[18]), 0) >= round(((100*$conf_nbc_UserAdvManager[18])/100),0 ))
     588        if ($deltadays >= $conf_nbc_UserAdvManager[18])
    589589        {
    590590          $display = 'red';
Note: See TracChangeset for help on using the changeset viewer.