try this one then, since it's looking for an integer in the array I think...still away from testing computer...
PHP Code:
$mybuddylist = array();
$mybuddylist = trim($bbuserinfo['buddylist']);
$mybuddylist = explode(' ', $mybuddylist);
foreach ($mybuddylist AS $key => $value){
$mybuddylist[$key] = intval($value);
}
That's about the extent of my abilities until I can get back to my testing server...