Code Duplication    Length = 2-2 lines in 2 locations

Sources/Load.php 2 locations

@@ 453-454 (lines=2) @@
450
			$user_settings = $smcFunc['db_fetch_assoc']($request);
451
			$smcFunc['db_free_result']($request);
452
453
			if (!empty($modSettings['force_ssl']) && $image_proxy_enabled && stripos($user_settings['avatar'], 'http://') !== false)
454
				$user_settings['avatar'] = strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($user_settings['avatar']) . '&hash=' . md5($user_settings['avatar'] . $image_proxy_secret);
455
456
			if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
457
				cache_put_data('user_settings-' . $id_member, $user_settings, 60);
@@ 1277-1278 (lines=2) @@
1274
			$row['avatar_original'] = !empty($row['avatar']) ? $row['avatar'] : '';
1275
1276
			// Take care of proxying avatar if required, do this here for maximum reach
1277
			if ($image_proxy_enabled && !empty($row['avatar']) && stripos($row['avatar'], 'http://') !== false)
1278
				$row['avatar'] = $boardurl . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret);
1279
1280
			// Keep track of the member's normal member group
1281
			$row['primary_group'] = $row['member_group'];