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

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