Code Duplication    Length = 4-4 lines in 2 locations

sources/database/Db-mysql.class.php 1 location

@@ 678-681 (lines=4) @@
675
676
		// Show an error message, if possible.
677
		$context['error_title'] = $txt['database_error'];
678
		if (allowedTo('admin_forum'))
679
			$context['error_message'] = nl2br($query_error) . '<br />' . $txt['file'] . ': ' . $file . '<br />' . $txt['line'] . ': ' . $line;
680
		else
681
			$context['error_message'] = $txt['try_again'];
682
683
		// Add database version that we know of, for the admin to know. (and ask for support)
684
		if (allowedTo('admin_forum'))

sources/database/Db-postgresql.class.php 1 location

@@ 526-529 (lines=4) @@
523
524
		// Show an error message, if possible.
525
		$context['error_title'] = $txt['database_error'];
526
		if (allowedTo('admin_forum'))
527
			$context['error_message'] = nl2br($query_error) . '<br />' . $txt['file'] . ': ' . $file . '<br />' . $txt['line'] . ': ' . $line;
528
		else
529
			$context['error_message'] = $txt['try_again'];
530
531
		// Add database version that we know of, for the admin to know. (and ask for support)
532
		if (allowedTo('admin_forum'))