X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=BotLoader%2Fsaxdb.class.php;h=a76760a387517a5b7e59b06666eb628ce1d6ecb5;hb=56db0f2b9479259c23ef03661d10ab8b18c5ea41;hp=15b36c2669a4a97f40021705c6e2e021d7ad5b4a;hpb=412e324075de1312fbc5f49b735180b46cdff82c;p=PHP-P10.git diff --git a/BotLoader/saxdb.class.php b/BotLoader/saxdb.class.php index 15b36c2..a76760a 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)."\"";