fixed php warning in find group API