From f6f935a36e9572b9b2515fbcdec841e9cd42629b Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 9 Oct 2005 18:33:52 +0000 Subject: [PATCH] Return true or false from warnForInactivity() depending on whether we warned the user or not, this way we can provide more accurate numbers in the cleanup script summary --- include/user.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/user.php b/include/user.php index 8668e42..103e39c 100644 --- a/include/user.php +++ b/include/user.php @@ -705,7 +705,7 @@ class User { /* we don't want to warn users that have data associated with them */ if($this->hasDataAssociated()) { - return; + return false; } if($this->isMaintainer()) @@ -726,6 +726,8 @@ class User { /* mark this user as being inactive and set the appropriate timestamp */ $sQuery = "update user_list set inactivity_warned='true', inactivity_warn_stamp=NOW() where userid=".$this->iUserId; query_appdb($sQuery); + + return true; } }