X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=BotLoader%2Fsaxdb.class.php;h=f4d0e559a3cf71f57ab69b1e245b442d35e78827;hp=15b36c2669a4a97f40021705c6e2e021d7ad5b4a;hb=811bc0c7a1f583fb624a0f8c3601146e063c5a25;hpb=412e324075de1312fbc5f49b735180b46cdff82c diff --git a/BotLoader/saxdb.class.php b/BotLoader/saxdb.class.php index 15b36c2..f4d0e55 100644 --- a/BotLoader/saxdb.class.php +++ b/BotLoader/saxdb.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -152,13 +149,17 @@ 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; + if(!is_array($value) && !is_string($value) && !is_numeric($value)) { + echo"invalid type ".gettype($value)."\n"; + 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)."\"";