mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-14 19:30:15 +00:00
This commit is contained in:
parent
a93d831018
commit
fbd18eac88
|
@ -850,13 +850,16 @@ class Parameters extends ParametersData {
|
|||
*/
|
||||
public function _titlematch( $option ) {
|
||||
$data = $this->getParameter( 'title' );
|
||||
if ( !is_array( $data['like'] ) ) {
|
||||
|
||||
if ( !isset( $data['like'] ) || !is_array( $data['like'] ) ) {
|
||||
$data['like'] = [];
|
||||
}
|
||||
|
||||
$newMatches = explode( '|', str_replace( ' ', '\_', $option ) );
|
||||
$data['like'] = array_merge( $data['like'], $newMatches );
|
||||
$this->setParameter( 'title', $data );
|
||||
$this->setSelectionCriteriaFound( true );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue