X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=07cc6dec72cdbce217e5b5f39358cd87d284e2c6;hp=3e7870dcc0e3bf6309eb074b10fe59bf6f1481eb;hb=f95117c9e5506c4cb00e1b5ee02b2e566c837874;hpb=6f0660024f7c0f873220c9174604e0d7a521c82f diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 3e7870d..07cc6de 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1732,7 +1732,6 @@ class Brisk $user_code = -1; $ret = 0; - do { if (($json = json_decode($json_s)) == FALSE) { $ret = 1; @@ -1744,13 +1743,13 @@ class Brisk break; } - if (($user_item = $bdb->usersnet_save($user->code, $json)) == FALSE) { - $ret = 4; + if (($user_item = $bdb->usersnet_save($user->code, $json)) != 0) { + $ret = 4000 + $user_item; break; } - return (TRUE); } while(0); - return (FALSE); + + return ($ret); } function room_outstandup($user) @@ -2115,7 +2114,6 @@ class Brisk else if (strncmp($msg, "/info ", 6) == 0) { $info_user = substr($msg, 6); - error_log("here [" . $info_user."][".escsql(urldecode($info_user)). "]"); echo $this->info_show($user, urldecode($info_user), $dt); } else if (strncmp($msg, "/st ", 4) == 0) {