ApiLogin: Don't try to add block info if there's no block
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 2 Sep 2015 13:14:20 +0000 (09:14 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 2 Sep 2015 13:14:20 +0000 (09:14 -0400)
commit7ab2c2e2c3db05e4135d5cf2f117db13f837ff13
tree6ac810299eeec9cd7b1beaf593c95b457766dfa9
parentdb9df606e91cb4e2351d8cdcbf4f3db09d1f4bc3
ApiLogin: Don't try to add block info if there's no block

Extensions such as CentralAuth can use various hooks to return
USER_BLOCKED or CREATE_BLOCKED despite there being no local block.

Bug: T111082
Change-Id: I3433a35547967852fc30bd56274392a186004a38
includes/api/ApiLogin.php