Code
function footermenu($week){
$numweeks = pnModGetVar('pnBaseball','numWeeks');
if (!is_numeric($numweeks)){
print 'Something dicked up. $numweeks is ';
print_r($numweeks);
return;
}
$numweeks = pnModGetVar('pnBaseball','numWeeks');
if (!is_numeric($numweeks)){
print 'Something dicked up. $numweeks is ';
print_r($numweeks);
return;
}
numWeeks is set to 28 in the database. The first time I hit the page the footer prints correctly. The second time I hit the page I get this:
Something dicked up. $numweeks is Array ( )
Any ideas what I'm doing wrong? Postnuke version is .750
Thanks,
Nick
