'ipb_expiry' => $dbw->timestamp( $this->mExpiry ),
],
[ /* WHERE */
- 'ipb_address' => (string)$this->getTarget()
+ 'ipb_id' => $this->getId(),
],
__METHOD__
);
# but actually an old subpage (bug #29797)
if ( strpos( $target, '/' ) !== false ) {
# An old subpage, drill down to the user behind it
- $parts = explode( '/', $target );
- $target = $parts[0];
+ $target = explode( '/', $target )[0];
}
$userObj = User::newFromName( $target );