Qual: Removed warnings
This commit is contained in:
parent
82fb8b4d61
commit
7efe7ad255
@ -293,7 +293,7 @@ class Form
|
|||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
$countryArray[$i]['rowid'] = $obj->rowid;
|
$countryArray[$i]['rowid'] = $obj->rowid;
|
||||||
$countryArray[$i]['code_iso'] = $obj->code_iso;
|
$countryArray[$i]['code_iso'] = $obj->code_iso;
|
||||||
$countryArray[$i]['label'] = ($obj->code_iso && $langs->trans("Country".$obj->code_iso)!="Country".$obj->code_iso?$langs->trans("Country".$obj->code_iso):($obj->label!='-'?$obj->label:''));
|
$countryArray[$i]['label'] = ($obj->code_iso && $langs->transnoentitiesnoconv("Country".$obj->code_iso)!="Country".$obj->code_iso?$langs->transnoentitiesnoconv("Country".$obj->code_iso):($obj->label!='-'?$obj->label:''));
|
||||||
$label[$i] = $countryArray[$i]['label'];
|
$label[$i] = $countryArray[$i]['label'];
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -302,10 +302,14 @@ class Form
|
|||||||
|
|
||||||
foreach ($countryArray as $row)
|
foreach ($countryArray as $row)
|
||||||
{
|
{
|
||||||
if ($selected && $selected != '-1' && ($selected == $row['rowid'] || $selected == $row['code_iso'] || $selected == $row['label']) ) {
|
//print 'rr'.$selected.'-'.$row['label'].'-'.$row['code_iso'].'<br>';
|
||||||
$foundselected=true;
|
if ($selected && $selected != '-1' && ($selected == $row['rowid'] || $selected == $row['code_iso'] || $selected == $row['label']) )
|
||||||
|
{
|
||||||
|
$foundselected=true;
|
||||||
$out.= '<option value="'.$row['rowid'].'" selected="selected">';
|
$out.= '<option value="'.$row['rowid'].'" selected="selected">';
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$out.= '<option value="'.$row['rowid'].'">';
|
$out.= '<option value="'.$row['rowid'].'">';
|
||||||
}
|
}
|
||||||
$out.= $row['label'];
|
$out.= $row['label'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user