HomeHelpTrac

Changeset 13821


Ignore:
Timestamp:
03/23/10 01:30:10 (2 years ago)
Author:
Anton Lesnikov
Message:

Ticket #1923

Location:
trunk/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolAlertsResponceMatch.php

    r13227 r13821  
    5252    { 
    5353        $aProfile = getProfileInfo($iProfileId); 
    54          
    55         if ($aProfile['UpdateMatch'] || $sAction == 'join') 
     54 
     55        if ($aProfile['Status'] == 'Active' && ($aProfile['UpdateMatch'] || $sAction == 'join')) 
    5656        { 
    5757            $oDb = new BxDolDb(); 
  • trunk/inc/match.inc.php

    r13210 r13821  
    2121     
    2222    if (!(int)$iProfileId) 
    23         return $iResult; 
     23        return $aResult; 
    2424         
    2525    if (!$bForce) 
     
    3535     
    3636    if (empty($aProf)) 
    37         return $iResult; 
     37        return $aResult; 
    3838         
    3939    $aMathFields = getMatchFields(); 
     
    6464    else if ($sSort == 'date_reg') 
    6565        $sCondSort = 'ORDER BY `DateReg` DESC'; 
    66          
     66 
     67    $iPercentThreshold = getParam('match_percent'); 
    6768    $aProfiles = $oDb->getColumn("SELECT `ID` FROM `Profiles` WHERE `Status` = 'Active' AND `ID` != $iProfileId $sCondSort"); 
    6869    foreach ($aProfiles as $iProfId) 
     
    7677        } 
    7778         
    78         if ($iPercent >= getParam('match_percent')) 
     79        if ($iPercent >= $iPercentThreshold) 
    7980            $aResult[] = $iProfId; 
    8081    } 
Note: See TracChangeset for help on using the changeset viewer.