projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reduce HACK(4) messages by using MODE instead of OPMODE for bots having UMode +k set
[PHP-P10.git]
/
BotLoader
/
saxdb.class.php
diff --git
a/BotLoader/saxdb.class.php
b/BotLoader/saxdb.class.php
index 1c431688536b69e118a91806b52052e4b1355466..a76760a387517a5b7e59b06666eb628ce1d6ecb5 100644
(file)
--- a/
BotLoader/saxdb.class.php
+++ b/
BotLoader/saxdb.class.php
@@
-152,7
+152,10
@@
class saxdb {
private function serializeDB($db) {
$dbstring = "";
foreach($db as $name => $value) {
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 .= "\"".str_replace("\"","\\\"", $name)."\"";
if(is_array($value)) {
$dbstring .= "{";