mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-25 00:26:10 +00:00
Fix "Trying to access array offset on value of type null" (#54)
This commit is contained in:
parent
7bc82c9a62
commit
c5a8702106
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue