From 426cd39eb373ad670be21ce13e34516dab3f94cc Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 21 May 2018 23:23:10 +0200 Subject: [PATCH] $D[$C] puede ser un string, lo que genera numerosos warnings --- html/wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/wiki.php b/html/wiki.php index 9681e4c..dfbc6a5 100644 --- 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; -- 2.30.2