oops, sorry that's an error i made during the post.
should be -
There are some things in the code that might not make complete sance, i tried to have it as close to the original as possable to see if the problam would go away, but it still wouldn'tPHP Code:while (list($key, $value) = each($lng->catalog_languages))
just in case here is the original code from /includes/templates/template_default/sideboxes/tpl_languages.php
as mantioned before, i have the same problam with the original code, when i enable the language sidebox.PHP Code:$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$lng_cnt = 0;
while (list($key, $value) = each($lng->catalog_languages)) {
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
$lng_cnt ++;
if ($lng_cnt >= MAX_LANGUAGE_FLAGS_COLUMNS) {
$lng_cnt = 0;
$content .= '<br />';
}
}
$content .= '</div>';



