Index: trunk/phase3/includes/Block.php |
— | — | @@ -71,6 +71,9 @@ |
72 | 72 | } |
73 | 73 | |
74 | 74 | $this->setTarget( $address ); |
| 75 | + if ( $this->target instanceof User && $user ) { |
| 76 | + $this->target->setId( $user ); // needed for foreign users |
| 77 | + } |
75 | 78 | if ( $by ) { // local user |
76 | 79 | $this->setBlocker( User::newFromID( $by ) ); |
77 | 80 | } else { // foreign user |