aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLTitlesMultiselectField.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlform/fields/HTMLTitlesMultiselectField.php')
-rw-r--r--includes/htmlform/fields/HTMLTitlesMultiselectField.php4
1 files changed, 2 insertions, 2 deletions
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 );
}