Code Duplication    Length = 4-4 lines in 5 locations

modules/calendar.php 1 location

@@ 435-438 (lines=4) @@
432
		{
433
			// Save changes
434
			case 'save':
435
				if (!check_form_key('acp_portal'))
436
				{
437
					trigger_error($this->user->lang['FORM_INVALID']. adm_back_link($u_action), E_USER_WARNING);
438
				}
439
440
				$event_title = $this->request->variable('event_title', '', true);
441
				$event_desc = $this->request->variable('event_desc', '', true);

modules/custom.php 1 location

@@ 196-199 (lines=4) @@
193
		{
194
			// Save changes
195
			case 'save':
196
				if (!check_form_key('acp_portal'))
197
				{
198
					trigger_error($this->user->lang['FORM_INVALID']. adm_back_link($u_action), E_USER_WARNING);
199
				}
200
201
				$custom_code = $this->request->variable('custom_code', '', true);
202
				$custom_bbcode = $this->request->variable('custom_use_bbcode', 1); // default to BBCode

modules/links.php 1 location

@@ 258-261 (lines=4) @@
255
		{
256
			// Save changes
257
			case 'save':
258
				if (!check_form_key('acp_portal'))
259
				{
260
					trigger_error($this->user->lang['FORM_INVALID']. adm_back_link($u_action), E_USER_WARNING);
261
				}
262
263
				$link_title = $this->request->variable('link_title', ' ', true);
264
				$link_type = $this->request->variable('link_type', 2); // default to B3_LINK_EXT, no categories in Links block

modules/main_menu.php 1 location

@@ 313-316 (lines=4) @@
310
		{
311
			// Save changes
312
			case 'save':
313
				if (!check_form_key('acp_portal'))
314
				{
315
					trigger_error($this->user->lang['FORM_INVALID']. adm_back_link($u_action), E_USER_WARNING);
316
				}
317
318
				$link_title = $this->request->variable('link_title', ' ', true);
319
				$link_is_cat = $this->request->variable('link_is_cat', false);

modules/welcome.php 1 location

@@ 180-183 (lines=4) @@
177
		{
178
			// Save changes
179
			case 'save':
180
				if (!check_form_key('acp_portal'))
181
				{
182
					trigger_error($this->user->lang['FORM_INVALID']. adm_back_link($u_action), E_USER_WARNING);
183
				}
184
185
				$welcome_message = $this->request->variable('welcome_message', '', true);
186
				$uid = $bitfield = $flags = '';