From 28fa2fc08f74cfb731fc02b8f8786cb1c269bfd9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 11 Dec 2015 15:29:23 -0800 Subject: [PATCH] Check User::getId() in makeTestEdits.php Change-Id: If803f1aea144f91dadf70e1a41d6834a2fd1d66e --- maintenance/makeTestEdits.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/makeTestEdits.php b/maintenance/makeTestEdits.php index fdf4eb9daf..c6569a0b31 100644 --- a/maintenance/makeTestEdits.php +++ b/maintenance/makeTestEdits.php @@ -39,7 +39,7 @@ class MakeTestEdits extends Maintenance { public function execute() { $user = User::newFromName( $this->getOption( 'user' ) ); - if ( !$user ) { + if ( !$user->getId() ) { $this->error( "No such user exists.", 1 ); } -- 2.20.1