mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 08:44:46 +02:00
Fix issue processwire/processwire-issues#1491
This commit is contained in:
@@ -405,7 +405,7 @@ class PagesRawFinder extends Wire {
|
|||||||
if(is_array($selector)) {
|
if(is_array($selector)) {
|
||||||
$val = reset($selector);
|
$val = reset($selector);
|
||||||
$key = key($selector);
|
$key = key($selector);
|
||||||
if(ctype_digit("$key") && ctype_digit("$val")) $this->selectorIsPageIDs = true;
|
if(ctype_digit("$key") && !is_array($val) && ctype_digit("$val")) $this->selectorIsPageIDs = true;
|
||||||
} else {
|
} else {
|
||||||
$selectorString = (string) $selector;
|
$selectorString = (string) $selector;
|
||||||
}
|
}
|
||||||
@@ -1049,7 +1049,7 @@ class PagesRawFinder extends Wire {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if selector is not array of page IDs then let pages.findIDs handle it
|
// if selector is not array of page IDs then let pages.findIDs handle it
|
||||||
if(!is_array($selector) || !isset($selector[0]) || !ctype_digit((string) $selector[0])) {
|
if(!is_array($selector) || !isset($selector[0]) || is_array($selector[0]) || !ctype_digit((string) $selector[0])) {
|
||||||
return $this->pages->findIDs($selector, $options);
|
return $this->pages->findIDs($selector, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user