1
0
Fork 0

Some standards

This commit is contained in:
Michael 2017-03-21 15:24:49 +00:00
commit f7b0c2082b
2 changed files with 22 additions and 15 deletions

View file

@ -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']));
}