I get a strange (at least to me) error on my home page:
Warning: Illegal string offset 'en'
Here is the code, please help:
if (isset($s['target_data']['description']) && $s['target_data']['description']){
if (isset($s['target_data']['description'][$lang])){
$s['target_data']['description'] = $s['target_data']['description'][$lang];
} else {
$s['target_data']['description'] = $s['target_data']['description']['en'];
}
} else {
$s['target_data']['description'] = "";
}