From 14870e883e3fbfb866998d6640c0e5fb8047d04b Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Tue, 22 Apr 2008 19:47:58 +0200 Subject: [PATCH] Removes the GoogleApps account clean-up for dead people who did not had any. Signed-off-by: Vincent Zanotti --- include/user.func.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/user.func.inc.php b/include/user.func.inc.php index 8a53e76..45666bb 100644 --- a/include/user.func.inc.php +++ b/include/user.func.inc.php @@ -74,8 +74,10 @@ function user_clear_all_subs($user_id, $really_del=true) // Deactivates, when available, the Google Apps account of the user. if ($globals->mailstorage->googleapps_domain) { require_once 'googleapps.inc.php'; - $account = new GoogleAppsAccount($uid, $alias); - $account->suspend(); + if (GoogleAppsAccount::account_status($uid)) { + $account = new GoogleAppsAccount($uid, $alias); + $account->suspend(); + } } } -- 2.1.4