projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check for info parameters
[brisk.git]
/
web
/
Obj
/
dbase_pgsql.phh
diff --git
a/web/Obj/dbase_pgsql.phh
b/web/Obj/dbase_pgsql.phh
index
8463884
..
911b2b6
100644
(file)
--- a/
web/Obj/dbase_pgsql.phh
+++ b/
web/Obj/dbase_pgsql.phh
@@
-887,13
+887,15
@@
INSERT INTO %smails (code, ucode, type, tstamp, subj, body_txt, body_htm, hash)
do {
$friend = usersnet_friend_getid($json->friend);
do {
$friend = usersnet_friend_getid($json->friend);
+ $json->skill = intval($json->skill);
+ $json->trust = intval($json->trust);
+
if ($json->skill < 1 || $json->skill > 5 ||
$json->trust < 1 || $json->trust > 5 ||
$friend == FALSE) {
$ret = 1;
break;
}
if ($json->skill < 1 || $json->skill > 5 ||
$json->trust < 1 || $json->trust > 5 ||
$friend == FALSE) {
$ret = 1;
break;
}
-
$this->transaction('BEGIN');
$trans = TRUE;
$this->transaction('BEGIN');
$trans = TRUE;