Changeset 3361
- Timestamp:
- 2006/08/30 23:50:50 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r3360 r3361 784 784 785 785 // ¥«¥Æ¥´¥ê¥Ä¥ê¡¼¤Î¼èÆÀ¡Ê¿Æ¥«¥Æ¥´¥ê¤ÎValue:0) 786 function sfGetLevelCatList($parent_zero = false) {786 function sfGetLevelCatList($parent_zero = true) { 787 787 $objQuery = new SC_Query(); 788 788 $col = "category_id, category_name, level"; … … 793 793 794 794 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 { 796 802 $arrValue[$cnt] = $arrRet[$cnt]['category_id']; 797 } else {798 $arrValue[$cnt] = "";799 803 } 800 804
Note: See TracChangeset
for help on using the changeset viewer.