Hi,
I recently installed Team OS 3.3, and i've got a warning message in users screen,
here, this error refers to this part of code in utils.php:
i don't know what is the problem, if i try to comment line 1285, the drop down default_team_id_c became populate and the error disapears,PHP Code:if (empty($key_list)) $key_list = array();
//create the type dropdown domain and set the selected value if $opp value already exists
foreach ($key_list as $option_key=>$option_value) { //LINE 1285
$selected_string = '';
// the system is evaluating $selected_key == 0 || '' to true. Be very careful when changing this. Test all cases.
// The bug was only happening with one of the users in the drop down. It was being replaced by none.
if (($option_key != '' && $selected_key == $option_key) || ($selected_key == '' && $option_key == '') || (is_array($selected_key) && in_array($option_key, $selected_key)))
{
$selected_string = 'selected ';
}
$html_value = $option_key;
$select_options .= "\n<OPTION ".$selected_string."value='$html_value'>$label_list[$option_key]</OPTION>";
}
$select_options = preg_replace($pattern, $replacement, $select_options);
return $select_options;
someone could help me please?
thank in advance,
Alexandre A.


LinkBack URL
About LinkBacks
?



Reply With Quote
on your production at least.

Bookmarks