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

This commit is contained in:
Chris Morgan
2005-10-09 18:33:52 +00:00
committed by WineHQ
parent 4469e01e5b
commit f6f935a36e

View File

@@ -705,7 +705,7 @@ class User {
/* we don't want to warn users that have data associated with them */ /* we don't want to warn users that have data associated with them */
if($this->hasDataAssociated()) if($this->hasDataAssociated())
{ {
return; return false;
} }
if($this->isMaintainer()) if($this->isMaintainer())
@@ -726,6 +726,8 @@ class User {
/* mark this user as being inactive and set the appropriate timestamp */ /* 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; $sQuery = "update user_list set inactivity_warned='true', inactivity_warn_stamp=NOW() where userid=".$this->iUserId;
query_appdb($sQuery); query_appdb($sQuery);
return true;
} }
} }