HomeHelpTrac

Ignore:
Timestamp:
07/27/11 23:09:41 (10 months ago)
Author:
Alexander Trofimov
Message:

Ticket #2523

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCSearch.php

    r15211 r15393  
    3434        $r = db_res (" 
    3535            SELECT * FROM `Profiles` 
    36             WHERE 1 $sWhere 
     36            WHERE (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
    3737            ORDER BY `DateLastNav` DESC 
    3838            LIMIT $iStart, $iPP"); 
     
    7979            SELECT * " . $sDistance  . " FROM `Profiles` 
    8080            $sJoin 
    81             WHERE 1 $sWhere 
     81            WHERE (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
    8282            ORDER BY `distance` ASC 
    8383            LIMIT $iStart, $iPP"); 
     
    120120        $r = db_res (" 
    121121            SELECT * " . ( $sMatch ? ", $sMatch" : '') . " FROM `Profiles` 
    122             WHERE 1 $sWhere 
     122            WHERE (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere 
    123123            ORDER BY `DateLastNav` DESC 
    124124            LIMIT $iStart, $iPP"); 
Note: See TracChangeset for help on using the changeset viewer.