Cytat
Fatal error: Cannot use string offset as an array in *\Registry.class.php(82) : eval()'d code on line 1
Warning: Unknown: Node no longer exists in Unknown on line 0
Warning: Unknown: Node no longer exists in Unknown on line 0
<?php private function BuildNodes($Nodes, $Eval) { if($NodeTest == NuLL) { $EvalCode = '$ENodeTest = $this->Data'; foreach ($Nodes as $Key => $Value) { $EvalCode .= '[' .$Value. ']'; { if($ENodeTest == NuLL) { } } } } } ?>
<?php $ValueString = $this->Data['Applications Data']['Notepad']['Recent']; ?>
Błąd występuje dokładnie w linii eval('$NodeTest = ' .$Eval. ';');
Oraz błąd w funkcji:
<?php public function Get($_Key) { $this->LoadTree($EXP); $OPData = '$ValueString = $this->Data'; foreach ($EXP as $Key => $Value) { $OPData .= '[\'' .$Value. '']'; } $OPData .= ';'; // returns correct value from registry return $ValueString; } ?>
W linii:
<?php ?>
Cytat
Fatal error: Cannot use string offset as an array in *\Registry.class.php(120) : eval()'d code on line 1
Najpierw ten drugi błąd poprawiłem, ale potem przetrzymałem ctrl+z i wszystko cofnełem, ale z tym pierwszym nie umiem sobię poradzić. ( w drugim wykrywam typ danych i konwertuje na niego)
Pozdrawiam, WebNuLL