Changeset 8701 for trunk/xmlrpc/BxDolXMLRPCMedia.php
- Timestamp:
- 01/21/09 05:52:40 (3 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc/BxDolXMLRPCMedia.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCMedia.php
r8600 r8701 45 45 $sTable = 'bx_shared_photo_files'; 46 46 $sFieldId = 'medID'; 47 $sFieldOwner = 'medProfId'; 47 48 break; 48 49 case 'video': 49 50 $sTable = 'RayVideoFiles'; 50 51 $sFieldId = 'ID'; 52 $sFieldOwner = 'Owner'; 51 53 break; 52 54 case 'music': 53 55 $sTable = 'RayMp3Files'; 54 56 $sFieldId = 'ID'; 57 $sFieldOwner = 'Owner'; 55 58 break; 56 59 default: … … 61 64 SELECT `c`.`Category`, COUNT(`f`.`$sFieldId`) AS `Num` 62 65 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') 64 67 WHERE `c`.`Type` = '$sType' AND (`c`.`Owner` = '0' OR `c`.`Owner` = '$iIdProfile') 65 68 GROUP BY `c`.`Category`")))
Note: See TracChangeset
for help on using the changeset viewer.