Is there a reason the code looks specifically for the RoleManager class to incorporate custom roles? I have altered the code on my dev server and things have held together so far.
First I made it so the code uses the foreach( $roles ) loop no matter what.
I was also able to "fool" it into working by declaring an empty RoleManager class.
The real question is, why does it look for RoleManager, why doesn't it just use the roles available to an install?
Thanks,
Marc