X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpurgeExpiredUserrights.php;h=ee40f5f4e79bdf8a96a173e278e22646da651e21;hp=d0bbddfaba47f01e31024095aeedc48d64add619;hb=a7064a0883ec6d715c8c8103efe777769a85437d;hpb=ad776c7d5f8deee581bf3338c76c6312c3e2933e diff --git a/maintenance/purgeExpiredUserrights.php b/maintenance/purgeExpiredUserrights.php index d0bbddfaba..ee40f5f4e7 100644 --- a/maintenance/purgeExpiredUserrights.php +++ b/maintenance/purgeExpiredUserrights.php @@ -36,8 +36,12 @@ class PurgeExpiredUserrights extends Maintenance { public function execute() { $this->output( "Purging expired user rights...\n" ); - UserGroupMembership::purgeExpired(); - $this->output( "Purge requests submitted.\n" ); + $res = UserGroupMembership::purgeExpired(); + if ( $res === false ) { + $this->output( "Purging failed.\n" ); + } else { + $this->output( "$res rows purged.\n" ); + } } }