mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 00:06:37 +02:00
committed by
Matias Griese
parent
c57a29c23f
commit
6dd5e0fd20
@@ -152,7 +152,7 @@ class Collection extends Iterator implements PageCollectionInterface
|
||||
{
|
||||
reset($this->items);
|
||||
|
||||
while (key($this->items) !== $path && key($this->items) !== null) {
|
||||
while (($key = key($this->items)) !== null && $key !== $path) {
|
||||
next($this->items);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user