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

Bug #1663439 reported by Robert Lyon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
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

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7448

Robert Lyon (robertl-9)
Changed in mahara:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Robert Lyon (robertl-9)
milestone: none → 17.04.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

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)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.