$temp_result = mysql_query($temp_sql);
$temp_num_rows = mysql_num_rows($temp_result);
->
$temp_num_rows = _dbCount($temp_sql);
But I think a hack isn´t a good solution.
Yesterday Jens and me have been think about this problem.
A better solution is a enhanced {MY_NAV_LIST_UL:C,......., ID1, ID2, ID3....} or {MY_NAV_LIST_UL:C,........} for all levels. (in frontend_render).
At this time I think the best solution is a replacer in frontend_render. By triggering the Ids produced with NAV_LIST_UL
e.g. <li id="li_article_level_13" class="sub_no"><a href="index.php?ebene06"><span>Ebene06</span></a></li>
Tag: {ARTICLE_COUNT: ID1, ID2, ID3.....} or {ARTICLE_COUNT:0} for all levels.
Found in line li_article_level_XX -> trigger XX -> call the db for article count -> inject the article count before </a> .
This is the most cleanest solution for me, no hack, no second navigation, only a frontend_render script.
Knut