1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00
This commit is contained in:
Ryan Cramer
2023-06-09 10:56:48 -04:00
parent e59a44a83d
commit b8da82d5c2

View File

@@ -186,7 +186,7 @@ class PageComparison {
* Given a Selectors object or a selector string, return whether this Page matches it
*
* @param Page $page
* @param string|Selectors $s
* @param string|array|Selectors $s
* @return bool
*
*/
@@ -220,7 +220,10 @@ class PageComparison {
}
} else if($s instanceof Selectors) {
$selectors = $s;
$selectors = $s;
} else if(is_array($s)) {
$selectors = $page->wire(new Selectors($s));
} else {
// unknown data type to match
@@ -397,4 +400,3 @@ class PageComparison {
}