Commit 02575183 authored by Stephen Mustgrave's avatar Stephen Mustgrave Committed by Rodrigue Tusse
Browse files

Issue #3273336 by smustgrave, justgable, rawdreeg: Users who logged in yesterday are being blocked

parent 22726578
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -121,17 +121,10 @@ class InactiveUsersHandler {

    $begin = new \DateTime("@$last_access");
    $end = new \DateTime("@$current_time");
    $months = -1;

    while ($begin <= $end) {

      $begin->modify('first day of next month');
      $months++;

    }

    return $months;
    $interval = $begin->diff($end);

    return $interval->format('%m');
  }

  /**