The first queries are replaced with the new functions. More to come ...
This commit is contained in:
parent
1c38540f20
commit
2c11e91e65
8 changed files with 32 additions and 54 deletions
|
|
@ -28,14 +28,10 @@ function receive_post(App $a) {
|
|||
}
|
||||
$guid = $a->argv[2];
|
||||
|
||||
$r = q("SELECT * FROM `user` WHERE `guid` = '%s' AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
|
||||
dbesc($guid)
|
||||
);
|
||||
if (!dbm::is_result($r)) {
|
||||
$importer = dba::select('user', array(), array('guid' => $guid, 'account_expired' => false, 'account_removed' => false), array('limit' => 1));
|
||||
if (!dbm::is_result($importer)) {
|
||||
http_status_exit(500);
|
||||
}
|
||||
|
||||
$importer = $r[0];
|
||||
}
|
||||
|
||||
// It is an application/x-www-form-urlencoded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue