fix bug for empty $userdetail.auth_type
Merge branch '3-corylus' of https://github.com/bedita/bedita into 3-corylus
Merge branch '3-corylus'