Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

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