Code Duplication    Length = 4-4 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 702-705 (lines=4) @@
699
700
	// Show an error message, if possible.
701
	$context['error_title'] = $txt['database_error'];
702
	if (allowedTo('admin_forum'))
703
		$context['error_message'] = nl2br($query_error) . '<br>' . $txt['file'] . ': ' . $file . '<br>' . $txt['line'] . ': ' . $line;
704
	else
705
		$context['error_message'] = $txt['try_again'];
706
707
	if (allowedTo('admin_forum') && isset($db_show_debug) && $db_show_debug === true)
708
	{

Sources/Subs-Db-postgresql.php 1 location

@@ 606-609 (lines=4) @@
603
604
	// Show an error message, if possible.
605
	$context['error_title'] = $txt['database_error'];
606
	if (allowedTo('admin_forum'))
607
		$context['error_message'] = nl2br($query_error) . '<br>' . $txt['file'] . ': ' . $file . '<br>' . $txt['line'] . ': ' . $line;
608
	else
609
		$context['error_message'] = $txt['try_again'];
610
611
	if (allowedTo('admin_forum') && isset($db_show_debug) && $db_show_debug === true)
612
	{