From e2a60c6e7fa9761aab72fa12f8f272d1fac0567b Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Mon, 29 Sep 2008 17:24:12 +0000 Subject: [PATCH] "compatibilite avec l'ancien spip_fetch_array : reconnaitre SPIP_NUM, SPIP_ASSOC et SPIP_BOTH qui ne sont pas definies, donc transposees par PHP automatiquement en leurs chaines" --- ecrire/inc/utils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index bb83c6f256..3ad3d69dec 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -1531,6 +1531,9 @@ function spip_fetch_array($r, $t=NULL) { if (!isset($t)) { if ($r) return sql_fetch($r); } else { + if ($t=='SPIP_NUM') $t = MYSQL_NUM; + if ($t=='SPIP_BOTH') $t = MYSQL_BOTH; + if ($t=='SPIP_ASSOC') $t = MYSQL_ASSOC; spip_log("appel deprecie de spip_fetch_array(..., $t)", 'vieilles_defs'); if ($r) return mysql_fetch_array($r, $t); } -- GitLab