Code Duplication    Length = 9-10 lines in 2 locations

ecrire/req/pg.php 1 location

@@ 48-56 (lines=9) @@
45
	    }
46
	}
47
48
	if ($link)
49
		$last_connect = array (
50
			'addr' => $addr,
51
			'port' => $port,
52
			'login' => $login,
53
			'pass' => $pass,
54
			'db' => $db,
55
			'prefixe' => $prefixe,
56
		);
57
		
58
#	spip_log("Connexion vers $host, base $db, prefixe $prefixe "
59
#		 . ($link ? 'operationnelle' : 'impossible'));

ecrire/req/sqlite_generique.php 1 location

@@ 94-103 (lines=10) @@
91
		return false;
92
	}
93
	
94
	if ($link) {
95
		$last_connect = array (
96
			'addr' => $addr,
97
			'port' => $port,
98
			'login' => $login,
99
			'pass' => $pass,
100
			'db' => $db,
101
			'prefixe' => $prefixe,
102
		);
103
	}
104
105
	return array(
106
		'db' => $db,