<?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 *
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 .= "{";