Skip to content
Extraits de code Groupes Projets
Valider 9430f002 rédigé par JamesRezo's avatar JamesRezo :tada:
Parcourir les fichiers

un parametre pour spip_fetch_array (cedric morin)

parent ef633ab0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -14,6 +14,11 @@
//
if (!defined("_ECRIRE_INC_VERSION")) return;
//constantes spip pour spip_fetch_array()
define('SPIP_BOTH', MYSQL_BOTH);
define('SPIP_ASSOC', MYSQL_ASSOC);
define('SPIP_NUM', MYSQL_NUM);
//
// Appel de requetes SQL
//
......@@ -196,9 +201,9 @@ function spip_mysql_showtable($nom_table)
// Recuperation des resultats
//
function spip_fetch_array($r) {
if ($r)
return mysql_fetch_array($r);
function spip_fetch_array($r, $t=SPIP_BOTH) {
if ($r)
return mysql_fetch_array($r, $t);
}
/* Appels obsoletes
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter