Code Duplication    Length = 2-2 lines in 2 locations

Sources/ManageAttachments.php 1 location

@@ 1610-1611 (lines=2) @@
1607
						if (strpos($file, 'post_tmp_') !== false)
1608
						{
1609
							// Temp file is more than 5 hours old!
1610
							if (filemtime($attach_dir . '/' . $file) < time() - 18000)
1611
								@unlink($attach_dir . '/' . $file);
1612
						}
1613
						// That should be an attachment, let's check if we have it in the database
1614
						elseif (strpos($file, '_') !== false)

Sources/ScheduledTasks.php 1 location

@@ 1660-1661 (lines=2) @@
1657
			if (strpos($file, 'post_tmp_') !== false)
1658
			{
1659
				// Temp file is more than 5 hours old!
1660
				if (filemtime($attach_dir . '/' . $file) < time() - 18000)
1661
					@unlink($attach_dir . '/' . $file);
1662
			}
1663
		}
1664
		closedir($dir);