Wikimedia España
/
inscripciones
/
inscribirse
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e9a1d1
)
$D[$C] puede ser un string, lo que genera numerosos warnings
author
Platonides
<platonides@gmail.com>
Mon, 21 May 2018 21:23:10 +0000
(23:23 +0200)
committer
Platonides
<platonides@gmail.com>
Mon, 21 May 2018 21:28:21 +0000
(23:28 +0200)
html/wiki.php
patch
|
blob
|
blame
|
history
diff --git
a/html/wiki.php
b/html/wiki.php
index 9681e4c30534b025a4a67ac056d871643152b47c..dfbc6a555d79ed14acae5a98e3072f0353cc6a2d 100644
(file)
--- a/
html/wiki.php
+++ b/
html/wiki.php
@@
-9,7
+9,7
@@
function parsecfg ($F) { # Se admiten matrices numéricas
$D[$CC[0]][$CC[1]] = $V;
} else {
$D[$C] = strpos ($V, ";") !== FALSE && strpos ($V, "[[") === FALSE && strpos ($V, "<") === FALSE ? explode (";", $V) : $V;
- if (! end ($D[$C])) array_pop ($D[$C]); # Eliminar último elemento vacío (normalmente por ; final que fuerza array)
+ if (
is_array($D[$C]) &&
! end ($D[$C])) array_pop ($D[$C]); # Eliminar último elemento vacío (normalmente por ; final que fuerza array)
}
}
return $D;