Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 416-426 (lines=11) @@
413
			$db_string .= "\n\t\t\tORDER BY null";
414
	}
415
416
	if (empty($db_values['security_override']) && (!empty($db_values) || strpos($db_string, '{db_prefix}') !== false))
417
	{
418
		// Pass some values to the global space for use in the callback function.
419
		$db_callback = array($db_values, $connection);
420
421
		// Inject the values passed to this function.
422
		$db_string = preg_replace_callback('~{([a-z_]+)(?::([a-zA-Z0-9_-]+))?}~', 'smf_db_replacement__callback', $db_string);
423
424
		// This shouldn't be residing in global space any longer.
425
		$db_callback = array();
426
	}
427
428
	// Debugging.
429
	if (isset($db_show_debug) && $db_show_debug === true)

Sources/Subs-Db-postgresql.php 1 location

@@ 383-393 (lines=11) @@
380
	if (empty($modSettings['disableQueryCheck']) && strpos($db_string, '\'') !== false && empty($db_values['security_override']))
381
		smf_db_error_backtrace('Hacking attempt...', 'Illegal character (\') used in query...', true, __FILE__, __LINE__);
382
383
	if (empty($db_values['security_override']) && (!empty($db_values) || strpos($db_string, '{db_prefix}') !== false))
384
	{
385
		// Pass some values to the global space for use in the callback function.
386
		$db_callback = array($db_values, $connection);
387
388
		// Inject the values passed to this function.
389
		$db_string = preg_replace_callback('~{([a-z_]+)(?::([a-zA-Z0-9_-]+))?}~', 'smf_db_replacement__callback', $db_string);
390
391
		// This shouldn't be residing in global space any longer.
392
		$db_callback = array();
393
	}
394
395
	// Debugging.
396
	if (isset($db_show_debug) && $db_show_debug === true)