Code Duplication    Length = 1-4 lines in 3 locations

api/src/Etemplate/Widget/Select.php 1 location

@@ 284-284 (lines=1) @@
281
		{
282
			$form_name = self::form_name($cname, $this->id, $expand);
283
		}
284
		if (!is_array(self::$request->sel_options[$form_name])) self::$request->sel_options[$form_name] = array();
285
		$type = $this->attrs['type'] ? $this->attrs['type'] : $this->type;
286
		if ($type != 'select' && $type != 'menupopup')
287
		{

calendar/inc/class.calendar_owner_etemplate_widget.inc.php 1 location

@@ 45-48 (lines=4) @@
42
43
		$value =& self::get_array(self::$request->content, $form_name);
44
45
		if (!is_array(self::$request->sel_options[$form_name]))
46
		{
47
			self::$request->sel_options[$form_name] = array();
48
		}
49
		$sel_options =& self::$request->sel_options[$form_name];
50
51
		// Get user accounts, formatted nicely for grouping and matching

api/src/Etemplate/Widget/Tree.php 1 location

@@ 289-289 (lines=1) @@
286
			//error_log(__METHOD__."() setting templated image-path for $form_name: $templated_path");
287
		}
288
289
		if (!is_array(self::$request->sel_options[$form_name])) self::$request->sel_options[$form_name] = array();
290
		if ($this->attrs['type'])
291
		{
292
			// += to keep further options set by app code