Mercurial > hg > fapweb
comparison ajax.php @ 75:699f6db022d9
Cosmetic reorder of checks.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Oct 2013 17:09:19 +0300 |
parents | 230aacc22cb4 |
children | a071dacdcfc5 |
comparison
equal
deleted
inserted
replaced
74:02de5197a232 | 75:699f6db022d9 |
---|---|
317 | 317 |
318 stExecSQLCond($sql, "OK, compo added."); | 318 stExecSQLCond($sql, "OK, compo added."); |
319 } | 319 } |
320 else | 320 else |
321 if ($type == "attendees" && stChkRequestItem("name") && | 321 if ($type == "attendees" && stChkRequestItem("name") && |
322 stChkRequestItem("groups") && stChkRequestItem("email") && | 322 stChkRequestItem("groups") && stChkRequestItem("oneliner") && |
323 stChkRequestItem("oneliner")) | 323 stChkRequestItem("email")) |
324 { | 324 { |
325 $sql = stPrepareSQL( | 325 $sql = stPrepareSQL( |
326 "INSERT INTO attendees (regtime,name,groups,oneliner,email) VALUES (%d,%S,%S,%S,%S)", | 326 "INSERT INTO attendees (regtime,name,groups,oneliner,email) VALUES (%d,%S,%S,%S,%S)", |
327 time(), "name", "groups", "oneliner", "email"); | 327 time(), "name", "groups", "oneliner", "email"); |
328 | 328 |