HomeHelpTrac

Ignore:
Timestamp:
04/02/09 00:03:21 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCFriends.php

    r9350 r9901  
    1111        BxDolXMLRPCUtil::setLanguage ($sLang);  
    1212 
    13         $r = db_res ("SELECT `Profiles`.* FROM `FriendList` 
     13        $sFriendsSQL = " 
     14            SELECT p.* 
     15            FROM `Profiles` AS p 
     16            LEFT JOIN `FriendList` AS f1 ON (f1.`ID` = p.`ID` AND f1.`Profile` ='{$iIdProfile}' AND `f1`.`Check` = 1) 
     17            LEFT JOIN `FriendList` AS f2 ON (f2.`Profile` = p.`ID` AND f2.`ID` ='{$iIdProfile}' AND `f2`.`Check` = 1) 
     18            WHERE 1 
     19            AND (f1.`ID` IS NOT NULL OR f2.`ID` IS NOT NULL) 
     20            ORDER BY p.`Picture` DESC 
     21        "; 
     22        $r = db_res($sFriendsSQL); 
     23 
     24        /*$r = db_res ("SELECT `Profiles`.* FROM `FriendList` 
    1425            LEFT JOIN `Profiles` ON (`Profiles`.`ID` = `FriendList`.`Profile` AND `FriendList`.`ID` = '$iIdProfile' OR `Profiles`.`ID` = `FriendList`.`ID` AND `FriendList`.`Profile` = '$iIdProfile') 
    1526            WHERE (`FriendList`.`Profile` = '$iIdProfile' OR `FriendList`.`ID` = '$iIdProfile') AND `FriendList`.`Check` = '1'  
    16             ORDER BY `Profiles`.`Picture` DESC"); 
     27            ORDER BY `Profiles`.`Picture` DESC");*/ 
    1728 
    1829        $aProfiles = array (); 
Note: See TracChangeset for help on using the changeset viewer.