|
foreach( $zones as $zone ) { |
|
$zone = $this->_fill_zone_details( $zone ); |
|
} |
That assignment back to $zone is flawed, since the variable just gets overridden on the next loop iteration, and the original $zones (which is returned from the function) is never updated.
See https://3v4l.org/QMZl6 as a POC.
While the fix is easy, we'll need to see what the implications are for having the $zones now populated with more data.
zoninator/zoninator.php
Lines 1219 to 1221 in 5588e05
That assignment back to
$zoneis flawed, since the variable just gets overridden on the next loop iteration, and the original$zones(which is returned from the function) is never updated.See https://3v4l.org/QMZl6 as a POC.
While the fix is easy, we'll need to see what the implications are for having the
$zonesnow populated with more data.