=== Configuration changes in 1.17 ===
=== Bug fixes in 1.17 ===
-* (bug 17560) Half-broken deletion moved image files to deletion archive without updating DB
+* (bug 17560) Half-broken deletion moved image files to deletion archive without
+ updating DB
+* (bug 22666) Submitting user block form with an invalid user name no longer
+ throws an error
== API changes in 1.17 ==
# Username block
if( $wgSysopUserBans ) {
$user = User::newFromName( $this->BlockAddress );
- if( !is_null( $user ) && $user->getId() ) {
+ if( $user !== false && $user->getId() ) {
# Use canonical name
$userId = $user->getId();
$this->BlockAddress = $user->getName();