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 ) {
|
public function _titlematch( $option ) {
|
||||||
$data = $this->getParameter( 'title' );
|
$data = $this->getParameter( 'title' );
|
||||||
if ( !is_array( $data['like'] ) ) {
|
|
||||||
|
if ( !isset( $data['like'] ) || !is_array( $data['like'] ) ) {
|
||||||
$data['like'] = [];
|
$data['like'] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$newMatches = explode( '|', str_replace( ' ', '\_', $option ) );
|
$newMatches = explode( '|', str_replace( ' ', '\_', $option ) );
|
||||||
$data['like'] = array_merge( $data['like'], $newMatches );
|
$data['like'] = array_merge( $data['like'], $newMatches );
|
||||||
$this->setParameter( 'title', $data );
|
$this->setParameter( 'title', $data );
|
||||||
$this->setSelectionCriteriaFound( true );
|
$this->setSelectionCriteriaFound( true );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue