Vergleich admin/inc/class_form.php - 1.8.22 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 422Zeile 422
		foreach($option_list as $value => $option)
{
$select_add = '';

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

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

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

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

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

Zeile 477Zeile 477
			}
}


			}
}


		if($options['main_option'] && $is_first)

		if(isset($options['main_option']) && $is_first)

		{
$select_add = '';
if($selected == -1)

		{
$select_add = '';
if($selected == -1)

Zeile 594Zeile 594
		$select .= ">\n";

$groups_cache = $cache->read('usergroups');

		$select .= ">\n";

$groups_cache = $cache->read('usergroups');

		



		if(!is_array($selected))
{
$selected = array($selected);
}

		if(!is_array($selected))
{
$selected = array($selected);
}

			



		foreach($groups_cache as $group)

		foreach($groups_cache as $group)

		{
$selected_add = "";



		{
$selected_add = "";



			if(in_array($group['gid'], $selected))
{
$selected_add = " selected=\"selected\"";
}

$select .= "<option value=\"{$group['gid']}\"{$selected_add}>".htmlspecialchars_uni($group['title'])."</option>";

			if(in_array($group['gid'], $selected))
{
$selected_add = " selected=\"selected\"";
}

$select .= "<option value=\"{$group['gid']}\"{$selected_add}>".htmlspecialchars_uni($group['title'])."</option>";

		}


		}


		$select .= "</select>";

		$select .= "</select>";





		return $select;
}

		return $select;
}

	



	/**
* Generate a prefix selection box.
*

	/**
* Generate a prefix selection box.
*

Zeile 633Zeile 633
		if(isset($options['multiple']))
{
$select .= " multiple=\"multiple\"";

		if(isset($options['multiple']))
{
$select .= " multiple=\"multiple\"";

		}

		}

		if(isset($options['class']))
{
$select .= " class=\"{$options['class']}\"";

		if(isset($options['class']))
{
$select .= " class=\"{$options['class']}\"";

Zeile 648Zeile 648
		}
$select .= ">\n";
$prefix_cache = $cache->read('threadprefixes');

		}
$select .= ">\n";
$prefix_cache = $cache->read('threadprefixes');

		



		if(!is_array($selected))

		if(!is_array($selected))

		{

		{

			$selected = array($selected);
}

			$selected = array($selected);
}

			



		foreach($prefix_cache as $prefix)
{
$selected_add = "";

		foreach($prefix_cache as $prefix)
{
$selected_add = "";

			





			if(in_array($prefix['pid'], $selected))
{
$selected_add = " selected=\"selected\"";

			if(in_array($prefix['pid'], $selected))
{
$selected_add = " selected=\"selected\"";

Zeile 754Zeile 754
		global $lang;

// Checked status

		global $lang;

// Checked status

		if($value == "no" || $value === '0')

		if($value === "no" || $value === '0' || $value === 0)

		{
$no_checked = 1;
$yes_checked = 0;

		{
$no_checked = 1;
$yes_checked = 0;