Changeset 246 for branches/release-1_3
- Timestamp:
- Jan 3, 2004, 9:43:43 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/template/default/htmlfunctions.inc.php
r57 r246 179 179 $vtp->setVar( $handle, 'category.indent', $indent ); 180 180 181 if ( $user['expand'] or count( $category['subcats'] )== 0 )181 if ( $user['expand'] or $category['nb_sub_categories'] == 0 ) 182 182 { 183 183 $vtp->addSession( $handle, 'bullet_wo_link' ); … … 221 221 $vtp->setVar( $handle, 'category.name_style', 'font-weight:bold;' ); 222 222 } 223 if ( count( $category['subcats'] )> 0 )223 if ( $category['nb_sub_categories'] > 0 ) 224 224 { 225 225 $vtp->addSession( $handle, 'subcat' ); 226 $vtp->setVar( $handle, 'subcat.nb_subcats', count($category['subcats']));226 $vtp->setVar( $handle,'subcat.nb_subcats',$category['nb_sub_categories'] ); 227 227 $vtp->closeSession( $handle, 'subcat' ); 228 228 }
Note: See TracChangeset
for help on using the changeset viewer.