X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=BotLoader%2Fsaxdb.class.php;h=1c431688536b69e118a91806b52052e4b1355466;hp=15b36c2669a4a97f40021705c6e2e021d7ad5b4a;hb=0f30e96ae37491aee19e72b89cc54a6798d1f254;hpb=412e324075de1312fbc5f49b735180b46cdff82c diff --git a/BotLoader/saxdb.class.php b/BotLoader/saxdb.class.php index 15b36c2..1c43168 100644 --- a/BotLoader/saxdb.class.php +++ b/BotLoader/saxdb.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -152,13 +149,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)."\"";