From: Hypolite Petovan Date: Sun, 25 Nov 2018 01:58:11 +0000 (-0500) Subject: Normalize quotes in User::remove X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dd120bb0642ae5bea38a27f50fd914e51511a94;p=friendica.git Normalize quotes in User::remove --- diff --git a/src/Model/User.php b/src/Model/User.php index aa05b492b0..43227a86da 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -799,15 +799,15 @@ class User DBA::insert('userd', ['username' => $user['nickname']]); // The user and related data will be deleted in "cron_expire_and_remove_users" (cronjobs.php) - DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc(DateTimeFormat::utcNow() . " + 7 day")], ['uid' => $uid]); - Worker::add(PRIORITY_HIGH, "Notifier", "removeme", $uid); + DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc(DateTimeFormat::utcNow() . ' + 7 day')], ['uid' => $uid]); + Worker::add(PRIORITY_HIGH, 'Notifier', 'removeme', $uid); // Send an update to the directory $self = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]); - Worker::add(PRIORITY_LOW, "Directory", $self['url']); + Worker::add(PRIORITY_LOW, 'Directory', $self['url']); // Remove the user relevant data - Worker::add(PRIORITY_LOW, "RemoveUser", $uid); + Worker::add(PRIORITY_LOW, 'RemoveUser', $uid); if ($uid == local_user()) { unset($_SESSION['authenticated']);