News:

Looking for documentation? Take a look on our wiki

Main Menu

[FIXED] Bug in shop.browse.php

Started by doorknob, July 14, 2008, 14:13:25 PM

Previous topic - Next topic

doorknob

I like the reworking of shop.browse. Unfortunately, an issue still remains. If the page shows only sub-categories without any products, an empty footer is shown. (there is also an unnecessary pair of php tags)
The code at lines 467 to 472
?>

<?php

$browsepage_footer 
$tpl->fetch'browse/includes/browse_pagenav.tpl.php' );
$tpl->set'browsepage_footer'$browsepage_footer );

should be replaced by
if ( $num_rows > 1 ) {
$browsepage_footer = $tpl->fetch( 'browse/includes/browse_pagenav.tpl.php' );
$tpl->set( 'browsepage_footer', $browsepage_footer );
}

regards
Phil

gregdev

Thanks. Fixed in SVN rev. 1470.

Greg

[tr][td]
[/td][td]
www.plainlycode.com[/td][/tr]
[/table]