From c5a870210619fe0cd095467eadc845dd73d8b06a Mon Sep 17 00:00:00 2001 From: Universal Omega <54654040+Universal-Omega@users.noreply.github.com> Date: Wed, 15 Sep 2021 20:03:00 -0600 Subject: [PATCH] Fix "Trying to access array offset on value of type null" (#54) --- includes/Parameters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parameters.php b/includes/Parameters.php index 182186f..614fa92 100644 --- a/includes/Parameters.php +++ b/includes/Parameters.php @@ -832,7 +832,7 @@ class Parameters extends ParametersData { */ public function _titleregexp( $option ) { $data = $this->getParameter( 'title' ); - if ( !is_array( $data['regexp'] ) ) { + if ( !isset( $data['regexp'] ) || !is_array( $data['regexp'] ) ) { $data['regexp'] = []; } $newMatches = explode( '|', str_replace( ' ', '\_', $option ) );