Another year is about to end... So we have to update these damn copyright information :P
[PHP-P10.git] / BotLoader / saxdb.class.php
index 1c431688536b69e118a91806b52052e4b1355466..f4d0e559a3cf71f57ab69b1e245b442d35e78827 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /******************************* PHP-P10 v2 *****************************
- * Copyright (C) 2011  Philipp Kreil (pk910)                            *
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)                       *
  *                                                                      *
  * This program is free software: you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -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 .= "{";