Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 195-196 (lines=2) @@
192
	if ($matches[1] === 'literal')
193
		return '\'' . mysqli_real_escape_string($connection, $matches[2]) . '\'';
194
195
	if (!isset($values[$matches[2]]))
196
		smf_db_error_backtrace('The database value you\'re trying to insert does not exist: ' . (isset($smcFunc['htmlspecialchars']) ? $smcFunc['htmlspecialchars']($matches[2]) : htmlspecialchars($matches[2])), '', E_USER_ERROR, __FILE__, __LINE__);
197
198
	$replacement = $values[$matches[2]];
199

Sources/Subs-Db-postgresql.php 1 location

@@ 155-156 (lines=2) @@
152
	if ($matches[1] === 'literal')
153
		return '\'' . pg_escape_string($matches[2]) . '\'';
154
155
	if (!isset($values[$matches[2]]))
156
		smf_db_error_backtrace('The database value you\'re trying to insert does not exist: ' . (isset($smcFunc['htmlspecialchars']) ? $smcFunc['htmlspecialchars']($matches[2]) : htmlspecialchars($matches[2])), '', E_USER_ERROR, __FILE__, __LINE__);
157
158
	$replacement = $values[$matches[2]];
159