I trying to figure out why in my case the counts are not taking in to consideration the `show` flag. The print_album_menu.php seems correct.
`
function printAlbumMenu(
.
.
.
case "count":
// count images in the main albums $result2 = query("SELECT COUNT(id) FROM ". prefix('images') ." WHERE `show` = 1 AND albumid = $id[$number]");
$count = mysql_result($result2, 0);
if($count === "0") {
$imagecount[$number] = "";
} else {
$imagecount[$number] = " (".$count.")"; }
`
But the menu on my page shows the full image count instead of visible count. I am not logged in as Admin. I am using garland theme.
`
Album Menu
<?php printAlbumMenu("list","count","album_menu","album_menu_active","album_menu_sub","album_menu_sub_active"); ?>
`
What could be going wrong here?