1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-24 07:03:06 +02:00

Quick fix for handling array data and converting to comma separated data including filtering list results. (Admin-UI)

This commit is contained in:
CaMer0n
2012-08-02 02:09:58 +00:00
parent 9937a9c0e2
commit b44f0a2085
3 changed files with 45 additions and 13 deletions

View File

@@ -917,9 +917,10 @@ class e_form
$option_array = array(1 => LAN_YES, 0 => LAN_NO);
}
if($options['multiple'] && strpos($name, '[') === false)
if($options['multiple'])
{
$name = $name.'[]';
$name = (strpos($name, '[') === false) ? $name.'[]' : $name;
$selected = explode(",",$selected);
}
$text = $this->select_open($name, $options)."\n";