X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=BotLoader%2Fsaxdb.class.php;fp=BotLoader%2Fsaxdb.class.php;h=e3e5413dd634fa114c483492fe216f2aea2502b2;hp=15b36c2669a4a97f40021705c6e2e021d7ad5b4a;hb=316aa700bd3e2e0019b8e3f10b543b49b0f77f02;hpb=74fcc85514c9bd0a4a8dfbd909d9555a9f1ee5b8 diff --git a/BotLoader/saxdb.class.php b/BotLoader/saxdb.class.php index 15b36c2..e3e5413 100644 --- a/BotLoader/saxdb.class.php +++ b/BotLoader/saxdb.class.php @@ -152,13 +152,14 @@ class saxdb { return $output; } - private function serializeDB($db, $dbstring = "") { + private function serializeDB($db) { + $dbstring = ""; foreach($db as $name => $value) { if(!is_array($value) && !is_string($value) && !is_numeric($value)) continue; $dbstring .= "\"".str_replace("\"","\\\"", $name)."\""; if(is_array($value)) { $dbstring .= "{"; - $dbstring .= $this->serializeDB($value, $dbstring); + $dbstring .= $this->serializeDB($value); $dbstring .= "}"; } else { $dbstring .= "\"".str_replace("\"","\\\"", $value)."\"";