Code Duplication    Length = 2-2 lines in 2 locations

Sources/Load.php 2 locations

@@ 448-449 (lines=2) @@
445
			$user_settings = $smcFunc['db_fetch_assoc']($request);
446
			$smcFunc['db_free_result']($request);
447
448
			if (!empty($modSettings['force_ssl']) && $image_proxy_enabled && stripos($user_settings['avatar'], 'http://') !== false && empty($user_info['possibly_robot']))
449
				$user_settings['avatar'] = strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($user_settings['avatar']) . '&hash=' . md5($user_settings['avatar'] . $image_proxy_secret);
450
451
			if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
452
				cache_put_data('user_settings-' . $id_member, $user_settings, 60);
@@ 1272-1273 (lines=2) @@
1269
			$row['avatar_original'] = !empty($row['avatar']) ? $row['avatar'] : '';
1270
1271
			// Take care of proxying avatar if required, do this here for maximum reach
1272
			if ($image_proxy_enabled && !empty($row['avatar']) && stripos($row['avatar'], 'http://') !== false && empty($user_info['possibly_robot']))
1273
				$row['avatar'] = $boardurl . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret);
1274
1275
			// Keep track of the member's normal member group
1276
			$row['primary_group'] = $row['member_group'];