Code Duplication    Length = 4-4 lines in 2 locations

addressbook/inc/class.addressbook_ui.inc.php 1 location

@@ 2403-2406 (lines=4) @@
2400
				{
2401
					$preserve = array_merge($preserve, $extra_tab['preserve']);
2402
				}
2403
				if ($extra_tab['readonlys'] && is_array($extra_tab['readonlys']))
2404
				{
2405
					$readonlys = array_merge($readonlys, $extra_tab['readonlys']);
2406
				}
2407
				// we must NOT add tabs and callbacks more then once!
2408
				if (!$first_call) continue;
2409

filemanager/inc/class.filemanager_ui.inc.php 1 location

@@ 1380-1383 (lines=4) @@
1377
				{
1378
					$preserve = array_merge($preserve, $extra_tab['preserve']);
1379
				}
1380
				if ($extra_tab['readonlys'] && is_array($extra_tab['readonlys']))
1381
				{
1382
					$readonlys = array_merge($readonlys, $extra_tab['readonlys']);
1383
				}
1384
			}
1385
		}
1386
		Framework::window_focus();