mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Fix issue processwire/processwire-issues#1438
This commit is contained in:
@@ -783,9 +783,8 @@ class PageFinder extends Wire {
|
||||
public function ___find($selectors, array $options = array()) {
|
||||
|
||||
if(is_string($selectors) || is_array($selectors)) {
|
||||
$selectors = new Selectors();
|
||||
$this->wire($selectors);
|
||||
$selectors->init($selectors);
|
||||
list($s, $selectors) = array($selectors, $this->wire(new Selectors()));
|
||||
$selectors->init($s);
|
||||
} else if(!$selectors instanceof Selectors) {
|
||||
throw new PageFinderException("find() requires Selectors object, string or array");
|
||||
}
|
||||
|
Reference in New Issue
Block a user