I was wondering about the ===, but because I couldn't get a test env up to
play I couldn't prove that theory :/


On 4 June 2014 19:32, Andy Durant <notifications@github.com> wrote:

> In src/Classes/ServiceAPI/MyRadio_User.php:
>
> > @@ -1565,8 +1565,8 @@ public function isActiveMemberForYear($year=null)
> >              $year = CoreUtils::getAcademicYear();
> >          }
> >          // If the current year exists in payments (even with a value of £0, the member is active)
> > -        foreach ($this->payment as $v) {
> > -            if ($v['year'] === $year) {
> > +        foreach ($this->getAllPayments() as $payment) {
>
> Might have actually been the === on the line below
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UniversityRadioYork/MyRadio/pull/75/files#r13402554>.
>