ok ... i figured it out...
i took out these lines which were causing errors because i wasn't using any other language.
Code:
if(is_array($product_links)){
foreach($product_links as $p_v => $p_k){
$int_res = '';
if(is_array($p_k)){
#
# Check if product have product options
#
$product_links[$p_v][product_options] = array_pop(func_query_first("SELECT COUNT(*) FROM $sql_tbl[product_options] WHERE productid='".$p_k["productid"]."'"));
#
# Replace descr and fulldescr on international (if defined)
#
$int_res = func_query_first("SELECT * FROM $sql_tbl[products_lng] WHERE code='$store_language' AND productid='".$p_k['productid']."'");
if ($int_res["product"]){
$product_links[$p_v]["product"] = stripslashes($int_res["product"]);
}
if ($int_res["descr"]){
$product_links[$p_v]["descr"] = str_replace("\n","
", stripslashes($int_res["descr"]));
}
if ($int_res["full_descr"]){
$product_links[$p_v]["fulldescr"] = str_replace("\n","
", stripslashes($int_res["full_descr"]));
}
}
}
};