fixed Bot database handling
[PHP-P10.git] / BotLoader / saxdb.class.php
index 1c431688536b69e118a91806b52052e4b1355466..a76760a387517a5b7e59b06666eb628ce1d6ecb5 100644 (file)
@@ -152,7 +152,10 @@ class saxdb {
        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 .= "{";