diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-09 16:13:49 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-09 16:13:49 -0700 |
commit | 2bdf135cbcf6208a4c2400d846b2fbffd8ae2c6b (patch) | |
tree | 6ed74d8d68db46f4ff1d5a2fa641afe47e0e75bd /include/account.php | |
parent | 134b9fc466ff529274cd81c95365919d506dfe1c (diff) | |
download | volse-hubzilla-2bdf135cbcf6208a4c2400d846b2fbffd8ae2c6b.tar.gz volse-hubzilla-2bdf135cbcf6208a4c2400d846b2fbffd8ae2c6b.tar.bz2 volse-hubzilla-2bdf135cbcf6208a4c2400d846b2fbffd8ae2c6b.zip |
remove more backquotes
Diffstat (limited to 'include/account.php')
-rw-r--r-- | include/account.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/account.php b/include/account.php index b78c3e56d..5e57d53a8 100644 --- a/include/account.php +++ b/include/account.php @@ -74,7 +74,7 @@ function check_account_invite($invite_code) { if(! $invite_code) { $result['message'] .= t('An invitation is required.') . EOL; } - $r = q("select * from register where `hash` = '%s' limit 1", dbesc($invite_code)); + $r = q("select * from register where hash = '%s' limit 1", dbesc($invite_code)); if(! $r) { $result['message'] .= t('Invitation could not be verified.') . EOL; } @@ -373,7 +373,7 @@ function account_allow($hash) { $ret = array('success' => false); - $register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1", + $register = q("SELECT * FROM register WHERE hash = '%s' LIMIT 1", dbesc($hash) ); @@ -465,7 +465,7 @@ function account_deny($hash) { intval($register[0]['uid']) ); - $r = q("DELETE FROM `register` WHERE id = %d", + $r = q("DELETE FROM register WHERE id = %d", dbesc($register[0]['id']) ); notice( sprintf(t('Registration revoked for %s'), $account[0]['account_email']) . EOL); @@ -482,7 +482,7 @@ function account_approve($hash) { // Note: when the password in the register table is 'verify', the uid actually contains the account_id - $register = q("SELECT * FROM `register` WHERE `hash` = '%s' and password = 'verify' LIMIT 1", + $register = q("SELECT * FROM register WHERE hash = '%s' and password = 'verify' LIMIT 1", dbesc($hash) ); |