HomeHelpTrac

Ignore:
Timestamp:
11/27/08 11:46:21 (3 years ago)
Author:
hihi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCImages.php

    r7703 r7756  
    2020                'id' => new xmlrpcval($aRow['id']), 
    2121                'title' => new xmlrpcval($aRow['title']), 
     22                'desc' => new xmlrpcval($aRow['desc']), 
     23                'icon' =>new xmlrpcval($aRow['icon']), 
    2224                'image' =>new xmlrpcval($aRow['medium']), 
    2325            ); 
     
    3537 
    3638        if (!($r = db_res (" 
    37             SELECT `pc`.`ID`, `pc`.`Title`, `pc`.`Desc`, COUNT(`pf`.`medID`) AS `num` 
     39            SELECT `pc`.`ID`, `pc`.`Title`, `pc`.`Desc`, COUNT(`pf`.`medID`) AS `Num` 
    3840            FROM `sharePhotoCategories` AS `pc` 
    39             INNER JOIN `sharePhotoFiles` AS `pf` ON (`pf`.`CategoryId` = `pc`.`ID`) 
    40             WHERE `pf`.`medProfId` = '$iIdProfile' 
     41            LEFT JOIN `sharePhotoFiles` AS `pf` ON (`pf`.`CategoryId` = `pc`.`ID` AND `pf`.`medProfId` = '$iIdProfile') 
    4142            GROUP BY `pc`.`ID` 
    4243            ORDER BY `pc`.`Order`"))) 
     
    4647        while ($a = mysql_fetch_array ($r)) 
    4748        { 
    48             $a = array ( 
    49                 'Id' => new xmlrpcval($aRow['ID']), 
    50                 'Title' => new xmlrpcval($aRow['Title']), 
    51                 'Desc' =>new xmlrpcval($aRow['Desc']), 
     49            $aImage = array ( 
     50                'Id' => new xmlrpcval($a['ID']), 
     51                'Title' => new xmlrpcval($a['Title']), 
     52                'Desc' =>new xmlrpcval($a['Desc']), 
     53                'Num' =>new xmlrpcval($a['Num']), 
    5254            ); 
    53             $aImages[] = new xmlrpcval($a, 'struct'); 
     55            $aImages[] = new xmlrpcval($aImage, 'struct'); 
    5456        } 
    5557        return new xmlrpcval ($aImages, "array"); 
Note: See TracChangeset for help on using the changeset viewer.