Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

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