Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 175-180 (lines=6) @@
172
	if ($matches[1] === 'db_prefix')
173
		return $db_prefix;
174
175
	if (!empty($user_info))
176
	{
177
		foreach (array_keys($user_info) as $key)
178
			if (strpos($key, 'query_') !== false && $key === $matches[1])
179
				return $user_info[$matches[1]];
180
	}
181
182
	if ($matches[1] === 'empty')
183
		return '\'\'';

Sources/Subs-Db-postgresql.php 1 location

@@ 131-136 (lines=6) @@
128
	if ($matches[1] === 'db_prefix')
129
		return $db_prefix;
130
131
	if (!empty($user_info))
132
	{
133
		foreach (array_keys($user_info) as $key)
134
			if (strpos($key, 'query_') !== false && $key === $matches[1])
135
				return $user_info[$matches[1]];
136
	}
137
138
	if ($matches[1] === 'empty')
139
		return '\'\'';