Issue #2342237 by martin107: Fixed Cannot use the same variable in the inner and outer foreach loop ( $label ).