Update auth.php

In Novell eDir the group search returns strings, not arrays. Added if-statement which determines if the result is an array or an string.