Changeset 1030 in ExiteCMS


Ignore:
Timestamp:
10/27/07 13:12:13 (4 years ago)
Author:
hverton
Message:

Fixed not displaying multiple download categories in the download root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/downloads.php

    r861 r1030  
    183183    } 
    184184    // Then recurse through the download categories 
    185     $result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id > 0 AND download_parent = 0 ORDER BY download_cat_id DESC LIMIT 1"); 
    186     if (dbrows($result) != 0) { 
    187         $data = dbarray($result); 
     185    $result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id > 0 AND download_parent = 0 ORDER BY download_datestamp DESC"); 
     186    while($data = dbarray($result)) { 
    188187        recurse_dc($data['download_cat_id'], 0); 
    189188    } 
Note: See TracChangeset for help on using the changeset viewer.