Vergleich admin/inc/class_form.php - 1.8.7 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 392Zeile 392
	 * @param array $options Array of options for the select box (multiple, class, id, size)
* @return string The select box.
*/

	 * @param array $options Array of options for the select box (multiple, class, id, size)
* @return string The select box.
*/

	function generate_select_box($name, $option_list, $selected=array(), $options=array())

	function generate_select_box($name, $option_list=array(), $selected=array(), $options=array())

	{
if(!isset($options['multiple']))
{

	{
if(!isset($options['multiple']))
{

Zeile 422Zeile 422
		foreach($option_list as $value => $option)
{
$select_add = '';

		foreach($option_list as $value => $option)
{
$select_add = '';

			if(!empty($selected) && ((string)$value == (string)$selected || (is_array($selected) && in_array((string)$value, $selected))))

			if((!is_array($selected) || !empty($selected)) && ((string)$value == (string)$selected || (is_array($selected) && in_array((string)$value, $selected))))

			{
$select_add = " selected=\"selected\"";
}

			{
$select_add = " selected=\"selected\"";
}