I've had issues with addblank before so I just stopped trying to use it.
BTW, You don't need to check a bool twice:
Bad:
PHP Code:
if( function() )
{
// . . . stuff
}
else if( !function() )
{
// . . . stuff
}
Good:
PHP Code:
if( function() )
{
// . . . stuff
}
else
{
// . . . stuff
}
__________________