Hello David, wow, I found a real bug 😉 Thanks for the patch.
I’m not completely familiar with the Buddypress update scheme – will this patch automatically be in the next update? In this case, I’d hack the patch into the plugin core (I have no choice anyway than doing so, do I?)