From: Aaron Schulz Date: Fri, 11 Dec 2015 23:29:23 +0000 (-0800) Subject: Check User::getId() in makeTestEdits.php X-Git-Tag: 1.31.0-rc.0~8706^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=28fa2fc08f74cfb731fc02b8f8786cb1c269bfd9;p=lhc%2Fweb%2Fwiklou.git Check User::getId() in makeTestEdits.php Change-Id: If803f1aea144f91dadf70e1a41d6834a2fd1d66e --- 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 ); }