1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 08:44:46 +02:00
This commit is contained in:
Ryan Cramer
2021-12-30 09:58:40 -05:00
parent 3c983f9b51
commit da43be7d12

View File

@@ -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);
} }