Forum Moderators: coopster
foreach ($availLangs as $lang) {
$this->data['langLinks'][$lang] = $this->breadcrumbs->getCrumbs($this->location, $lang);
// a var_dump here shows that on each pass, the return value is indeed different.
}
//But a var_dump of the over-all array shows that each member of $this->data['langLinks'] has been set to the same return value.
//For comparison, this does what is expected i.e. each member of the new array is different.
foreach ($availLangs as $lang) {
$this->data['langLinks'][$lang] = $lang;
}