Some standards
This commit is contained in:
parent
9c16b47f55
commit
f7b0c2082b
2 changed files with 22 additions and 15 deletions
|
@ -111,7 +111,7 @@ function cron_expire_and_remove_users() {
|
|||
// delete user and contact records for recently removed accounts
|
||||
$r = q("SELECT * FROM `user` WHERE `account_removed` AND `account_expires_on` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
|
||||
if (dbm::is_result($r)) {
|
||||
foreach($r as $user) {
|
||||
foreach ($r as $user) {
|
||||
q("DELETE FROM `contact` WHERE `uid` = %d", intval($user['uid']));
|
||||
q("DELETE FROM `user` WHERE `uid` = %d", intval($user['uid']));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue