Code Duplication    Length = 6-7 lines in 2 locations

Sources/RemoveTopic.php 1 location

@@ 1015-1020 (lines=6) @@
1012
			'id_msg' => $message,
1013
		)
1014
	);
1015
	if ($smcFunc['db_affected_rows']() != 0)
1016
	{
1017
		require_once($sourcedir . '/ModerationCenter.php');
1018
		updateSettings(array('last_mod_report_action' => time()));
1019
		recountOpenReports('posts');
1020
	}
1021
1022
	return false;
1023
}

Sources/Logging.php 1 location

@@ 503-509 (lines=7) @@
500
			));
501
502
			// Alright, if we get any result back, update open reports.
503
			if ($smcFunc['db_num_rows']($request) > 0)
504
			{
505
				require_once($sourcedir . '/ModerationCenter.php');
506
				require_once($sourcedir . '/Subs-ReportedContent.php');
507
				updateSettings(array('last_mod_report_action' => time()));
508
				recountOpenReports('posts');
509
			}
510
			$smcFunc['db_free_result']($request);
511
		}
512