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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user