Index: trunk/phase3/includes/Block.php |
— | — | @@ -415,10 +415,11 @@ |
416 | 416 | array( 'IGNORE' ) |
417 | 417 | ); |
418 | 418 | $affected = $dbw->affectedRows(); |
| 419 | + $this->mId = $dbw->insertId(); |
419 | 420 | |
420 | 421 | if ( $affected ) { |
421 | 422 | $auto_ipd_ids = $this->doRetroactiveAutoblock(); |
422 | | - return array( 'id' => $ipb_id, 'autoIds' => $auto_ipd_ids ); |
| 423 | + return array( 'id' => $this->mId, 'autoIds' => $auto_ipd_ids ); |
423 | 424 | } |
424 | 425 | |
425 | 426 | return false; |