mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
SpecialAbuseLog: Don't call explode() on null
Bug: T311579 Change-Id: I2481beb2344a57242795a722e255e119ea29ac18
This commit is contained in:
parent
2314785568
commit
60cb198e81
|
@ -212,7 +212,7 @@ class SpecialAbuseLog extends AbuseFilterSpecialPage {
|
|||
|
||||
$this->checkPermissions();
|
||||
|
||||
$args = explode( '/', $parameter );
|
||||
$args = $parameter !== null ? explode( '/', $parameter ) : [];
|
||||
|
||||
if ( count( $args ) === 2 && $args[0] === 'private' ) {
|
||||
$this->showPrivateDetails( (int)$args[1] );
|
||||
|
|
Loading…
Reference in a new issue