As I do not have 4.1.2 beta installed, I can't test anything. Once 4.1.2 final gets released, I will look into it further. If trim is giving that error, I would venture to say that the vb team screwed something up again on the update. In the meantime, you could try replacing this:
Code:
$activeusers = trim($activeusers, ', ');
with this:
Code:
$activeusers = substr($activeusers, 2);
to see if that fixes it for now.