Changeset 3361


Ignore:
Timestamp:
2006/08/30 23:50:50 (18 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/lib/slib.php

    r3360 r3361  
    784784 
    785785// ¥«¥Æ¥´¥ê¥Ä¥ê¡¼¤Î¼èÆÀ¡Ê¿Æ¥«¥Æ¥´¥ê¤ÎValue:0) 
    786 function sfGetLevelCatList($parent_zero = false) { 
     786function sfGetLevelCatList($parent_zero = true) { 
    787787    $objQuery = new SC_Query(); 
    788788    $col = "category_id, category_name, level"; 
     
    793793     
    794794    for($cnt = 0; $cnt < $max; $cnt++) { 
    795         if($arrRet[$cnt]['level'] == LEVEL_MAX) { 
     795        if($parent_zero) { 
     796            if($arrRet[$cnt]['level'] == LEVEL_MAX) { 
     797                $arrValue[$cnt] = $arrRet[$cnt]['category_id']; 
     798            } else { 
     799                $arrValue[$cnt] = "";  
     800            } 
     801        } else { 
    796802            $arrValue[$cnt] = $arrRet[$cnt]['category_id']; 
    797         } else { 
    798             $arrValue[$cnt] = "";  
    799803        } 
    800804         
Note: See TracChangeset for help on using the changeset viewer.