Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 132-133 (lines=2) @@
129
	$upcontext['user'] = json_decode(base64_decode($upgradeData), true);
130
131
	// Check for sensible values.
132
	if (empty($upcontext['user']['started']) || $upcontext['user']['started'] < time() - 86400)
133
		$upcontext['user']['started'] = time();
134
	if (empty($upcontext['user']['updated']) || $upcontext['user']['updated'] < time() - 86400)
135
		$upcontext['user']['updated'] = 0;
136
@@ 134-135 (lines=2) @@
131
	// Check for sensible values.
132
	if (empty($upcontext['user']['started']) || $upcontext['user']['started'] < time() - 86400)
133
		$upcontext['user']['started'] = time();
134
	if (empty($upcontext['user']['updated']) || $upcontext['user']['updated'] < time() - 86400)
135
		$upcontext['user']['updated'] = 0;
136
137
	$upcontext['started'] = $upcontext['user']['started'];
138
	$upcontext['updated'] = $upcontext['user']['updated'];