Fix for display of multi-row read-only select-account widget

This commit is contained in:
Nathan Gray 2011-02-16 18:22:42 +00:00
parent 3980ba3692
commit 1ef649b869

View File

@ -234,7 +234,8 @@ class select_widget
if ($readonly)
{
$cell['no_lang'] = True;
foreach(is_array($value) ? $value : (strpos($value,',') !== false ? explode(',',$value) : array($value)) as $id)
if (!is_array($value) && strpos($value,',') !== false) $value = explode(',',$value);
foreach(is_array($value) ? $value : array($value) as $id)
{
$cell['sel_options'][$id] = !$id && !is_numeric($rows) ? lang($rows) :
$this->accountInfo($id,$acc,$type2,$type=='both');