Code Duplication    Length = 1-4 lines in 2 locations

phpgwapi/inc/class.egw_session.inc.php 1 location

@@ 228-231 (lines=4) @@
225
				$GLOBALS['egw_info']['server']['num_unsuccessful_ip']  = $GLOBALS['egw_info']['server']['num_unsuccessful_id'] * 5;	// default is 5 times as high as the id default; since accessing via proxy is quite common
226
				$save_rep = true;
227
			}
228
			if (!isset($GLOBALS['egw_info']['server']['install_id']))
229
			{
230
				$GLOBALS['egw_info']['server']['install_id']  = md5(common::randomstring(15));
231
			}
232
			if (!isset($GLOBALS['egw_info']['server']['max_history']))
233
			{
234
				$GLOBALS['egw_info']['server']['max_history'] = 20;

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

@@ 1056-1056 (lines=1) @@
1053
				if (isset($tln)) $details['to-lastname'] = $tln;
1054
1055
				// event is in user-time of current user, now we need to calculate the tz-difference to the notified user and take it into account
1056
				if (!isset($part_prefs['common']['tz'])) $part_prefs['common']['tz'] = $GLOBALS['egw_info']['server']['server_timezone'];
1057
				$timezone = new DateTimeZone($part_prefs['common']['tz']);
1058
				$timeformat = $part_prefs['common']['timeformat'];
1059
				switch($timeformat)