[WAR] 76 (auth/lib.php:117) Undefined property: stdClass::$active

Bug #1663439 reported by Robert Lyon on 2017-02-10
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
High
Robert Lyon

Bug Description

This is due to the adding of a new column in upgrade but if something before that upgrade block wants to access Auth::init() it throws the error because the vale from db doesn't exist yet

We need to check if it exists and set a default if not

Robert Lyon (robertl-9) on 2017-02-10
Changed in mahara:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Robert Lyon (robertl-9)
milestone: none → 17.04.0

Reviewed: https://reviews.mahara.org/7448
Committed: https://git.mahara.org/mahara/mahara/commit/8edf997663a66496eaeb598e0bee41544d2f8fd8
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 8edf997663a66496eaeb598e0bee41544d2f8fd8
Author: Robert Lyon <email address hidden>
Date: Fri Feb 10 14:33:59 2017 +1300

Bug 1663439: Setting a default value for auth 'active'

So that upgrade doesn't thow warnings before table row is added

behatnotneeded

Change-Id: Ic21b8f967526773e85fd1775ecdfca51bb69c1f6
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9) on 2017-02-21
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2017-04-27
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers