Changeset 4544


Ignore:
Timestamp:
12/21/09 18:31:54 (10 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.
Location:
extensions/NBC_UserAdvManager/trunk
Files:
2 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'; 
  • extensions/NBC_UserAdvManager/trunk/changelog.txt.php

    r4458 r4544  
    118118 
    119119-- 2.13.3 : Bug 1309 fixed - Forbidden characters in login name work fine again. 
     120            Bug 1342 fixed - Calculation between last visit and today is ok and displays the good color in user list. 
     121            Italian language improvement (thx to Rio) 
    120122 
    121123*/ 
Note: See TracChangeset for help on using the changeset viewer.