Code Duplication    Length = 4-4 lines in 2 locations

ecrire/req/sqlite_generique.php 1 location

@@ 576-579 (lines=4) @@
573
 *    string : requĂȘte, false si erreur, true sinon.
574
 */
575
function spip_sqlite_create_index($nom, $table, $champs, $unique = '', $serveur = '', $requeter = true) {
576
	if (!($nom or $table or $champs)) {
577
		spip_log("Champ manquant pour creer un index sqlite ($nom, $table, (" . join(',', $champs) . "))",
578
			'sqlite.' . _LOG_ERREUR);
579
580
		return false;
581
	}
582

ecrire/req/pg.exp.php 1 location

@@ 424-427 (lines=4) @@
421
 * @return bool ou requete
422
 */
423
function spip_pg_create_index($nom, $table, $champs, $serveur = '', $requeter = true) {
424
	if (!($nom or $table or $champs)) {
425
		spip_log("Champ manquant pour creer un index pg ($nom, $table, (" . @join(',', $champs) . "))",
426
			'pg.' . _LOG_ERREUR);
427
428
		return false;
429
	}
430