From 0958a0bce4bd8390c97ce2042f1eb04df8308293 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 9 Jan 2020 15:48:34 -0800 Subject: Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull Change-Id: I90cfe8366c0245c9c67e598d17800684897a4e27 --- includes/htmlform/fields/HTMLTitlesMultiselectField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/htmlform/fields/HTMLTitlesMultiselectField.php') diff --git a/includes/htmlform/fields/HTMLTitlesMultiselectField.php b/includes/htmlform/fields/HTMLTitlesMultiselectField.php index 1811c7ca765a..ab70d4f82654 100644 --- a/includes/htmlform/fields/HTMLTitlesMultiselectField.php +++ b/includes/htmlform/fields/HTMLTitlesMultiselectField.php @@ -46,7 +46,7 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField { return true; } - if ( is_null( $value ) ) { + if ( $value === null ) { return false; } @@ -108,7 +108,7 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField { $params['input'] = $this->mParams['input']; } - if ( !is_null( $value ) ) { + if ( $value !== null ) { // $value is a string, but the widget expects an array $params['default'] = $value === '' ? [] : explode( "\n", $value ); } -- cgit v1.2.3