dépôts
/
lhc
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SPIP] v3.2.11 -> v3.2.12
[lhc/web/www.git]
/
www
/
ecrire
/
iterateur
/
data.php
diff --git
a/www/ecrire/iterateur/data.php
b/www/ecrire/iterateur/data.php
index
616bfc8
..
42ad58f
100644
(file)
--- a/
www/ecrire/iterateur/data.php
+++ b/
www/ecrire/iterateur/data.php
@@
-684,9
+684,7
@@
function inc_sql_to_array_dist($u) {
* @return array|bool
*/
function inc_json_to_array_dist($u) {
- if (is_array($json = json_decode($u))
- or is_object($json)
- ) {
+ if (is_array($json = json_decode($u, true))) {
return (array)$json;
}
}