HomeHelpTrac

Changeset 8701 for trunk/xmlrpc


Ignore:
Timestamp:
01/21/09 05:52:40 (3 years ago)
Author:
Alexander Trofimov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCMedia.php

    r8600 r8701  
    4545                $sTable = 'bx_shared_photo_files'; 
    4646                $sFieldId = 'medID'; 
     47                $sFieldOwner = 'medProfId'; 
    4748                break; 
    4849            case 'video': 
    4950                $sTable = 'RayVideoFiles'; 
    5051                $sFieldId = 'ID'; 
     52                $sFieldOwner = 'Owner'; 
    5153                break; 
    5254            case 'music': 
    5355                $sTable = 'RayMp3Files'; 
    5456                $sFieldId = 'ID'; 
     57                $sFieldOwner = 'Owner'; 
    5558                break;           
    5659            default: 
     
    6164            SELECT `c`.`Category`, COUNT(`f`.`$sFieldId`) AS `Num` 
    6265            FROM `Categories` AS `c` 
    63             LEFT JOIN `$sTable` AS `f` ON (`f`.`$sFieldId` = `c`.`ID`) 
     66            LEFT JOIN `$sTable` AS `f` ON (`f`.`$sFieldId` = `c`.`ID` AND `f`.`$sFieldOwner` = '$iIdProfile') 
    6467            WHERE `c`.`Type` = '$sType' AND (`c`.`Owner` = '0' OR `c`.`Owner` = '$iIdProfile') 
    6568            GROUP BY `c`.`Category`"))) 
Note: See TracChangeset for help on using the changeset viewer.