SpecialEditWatchlist: Prevent passing null to strtolower()
Bug: T311678 Change-Id: Iee6a4c250f731e92e528fe35a55b978bf828c3c6
This commit is contained in:
parent
56f185a3eb
commit
7a4d38a8dc
1 changed files with 1 additions and 1 deletions
|
|
@ -819,7 +819,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
|
|||
* @return int|false
|
||||
*/
|
||||
public static function getMode( $request, $par, $defaultValue = false ) {
|
||||
$mode = strtolower( $request->getRawVal( 'action', $par ) );
|
||||
$mode = strtolower( $request->getRawVal( 'action', $par ?? '' ) );
|
||||
|
||||
switch ( $mode ) {
|
||||
case 'clear':
|
||||
|
|
|
|||
Loading…
Reference in a new issue