Code Duplication    Length = 2-2 lines in 2 locations

ecrire/req/sqlite_generique.php 1 location

@@ 1688-1689 (lines=2) @@
1685
	$index = $serveur ? $serveur : 0;
1686
1687
	if ($link = spip_connect_db('', '', '', '', '@selectdb@' . $db, $serveur, '', '')) {
1688
		if (($db == $link['db']) && $GLOBALS['connexions'][$index] = $link) {
1689
			return $db;
1690
		}
1691
	} else {
1692
		spip_log("Impossible de selectionner la base $db", 'sqlite.' . _LOG_HS);

ecrire/req/pg.exp.php 1 location

@@ 499-500 (lines=2) @@
496
	$index = $serveur ? strtolower($serveur) : 0;
497
498
	if ($link = spip_connect_db('', '', '', '', $db, 'pg', '', '')) {
499
		if (($db == $link['db']) && $GLOBALS['connexions'][$index] = $link) {
500
			return $db;
501
		}
502
	} else {
503
		return false;