Changeset 13821
- Timestamp:
- 03/23/10 01:30:10 (2 years ago)
- Location:
- trunk/inc
- Files:
-
- 2 edited
-
classes/BxDolAlertsResponceMatch.php (modified) (1 diff)
-
match.inc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolAlertsResponceMatch.php
r13227 r13821 52 52 { 53 53 $aProfile = getProfileInfo($iProfileId); 54 55 if ($aProfile[' UpdateMatch'] || $sAction == 'join')54 55 if ($aProfile['Status'] == 'Active' && ($aProfile['UpdateMatch'] || $sAction == 'join')) 56 56 { 57 57 $oDb = new BxDolDb(); -
trunk/inc/match.inc.php
r13210 r13821 21 21 22 22 if (!(int)$iProfileId) 23 return $ iResult;23 return $aResult; 24 24 25 25 if (!$bForce) … … 35 35 36 36 if (empty($aProf)) 37 return $ iResult;37 return $aResult; 38 38 39 39 $aMathFields = getMatchFields(); … … 64 64 else if ($sSort == 'date_reg') 65 65 $sCondSort = 'ORDER BY `DateReg` DESC'; 66 66 67 $iPercentThreshold = getParam('match_percent'); 67 68 $aProfiles = $oDb->getColumn("SELECT `ID` FROM `Profiles` WHERE `Status` = 'Active' AND `ID` != $iProfileId $sCondSort"); 68 69 foreach ($aProfiles as $iProfId) … … 76 77 } 77 78 78 if ($iPercent >= getParam('match_percent'))79 if ($iPercent >= $iPercentThreshold) 79 80 $aResult[] = $iProfId; 80 81 }
Note: See TracChangeset
for help on using the changeset viewer.