Hi,
the error is in the specified line:
function int2folderperm ($int)
{
$int & FOLDER_FRIEND_ACCESS;
$int & FOLDER_FAMILY_ACCESS;
return array ('friend' => (int), 'family' => (int));
}
shouldn't (int) be $int ?
What do you want to do with the two bitwise operations in that function ? They do nothing as long as you don't reassign the results of the operations to the $int variable (despite the fact that the second operation overwrites the first operation).
Thomas