HomeHelpTrac

Changeset 15628


Ignore:
Timestamp:
10/18/11 00:48:29 (7 months ago)
Author:
Alexander Trofimov
Message:

Ticket #2680

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCSearch.php

    r15621 r15628  
    3434        $r = db_res (" 
    3535            SELECT * FROM `Profiles` 
    36             WHERE (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
     36            WHERE `Status` = 'Active' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
    3737            ORDER BY `DateLastNav` DESC 
    3838            LIMIT $iStart, $iPP"); 
     
    8989            SELECT * " . $sDistance  . " FROM `Profiles` 
    9090            $sJoin 
    91             WHERE (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
     91            WHERE `Status` = 'Active' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
    9292            ORDER BY `distance` ASC 
    9393            LIMIT $iStart, $iPP"); 
     
    130130        $r = db_res (" 
    131131            SELECT * " . ( $sMatch ? ", $sMatch" : '') . " FROM `Profiles` 
    132             WHERE (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
     132            WHERE `Status` = 'Active' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
    133133            ORDER BY `DateLastNav` DESC 
    134134            LIMIT $iStart, $iPP"); 
Note: See TracChangeset for help on using the changeset viewer.