Definir la variable $D al inicio
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 21:20:47 +0000 (23:20 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 21:28:21 +0000 (23:28 +0200)
html/wiki.php

index 1487b3769394a5dff1a9a22c290e47deb01fbf1c..9681e4c30534b025a4a67ac056d871643152b47c 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 function parsecfg ($F) {                        # Se admiten matrices numéricas (guardadas como m = v1:v2...) o asociativas (guardadas como m.c1 = v1\\m.c2 = v2...)
+        $D = array ();
         foreach (file (dirname (__DIR__) . "/config/" . $F, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $L) {
                 list ($C, $V) = preg_split ("/\s*=\s*/", $L, 2);
                 if (strpos ($C, ".") !== FALSE) {