mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +02:00
Optimization to prevent overhead when PagesRaw.find() matches no pages
This commit is contained in:
@@ -781,6 +781,8 @@ class PagesRawFinder extends Wire {
|
||||
$templatesById = array();
|
||||
$getPaths = $this->getPaths;
|
||||
|
||||
if(empty($this->selector)) return;
|
||||
|
||||
foreach($this->findIDs($this->selector, '*') as $row) {
|
||||
$id = (int) $row['id'];
|
||||
$this->ids[$id] = $id;
|
||||
|
Reference in New Issue
Block a user