Commit 8edf9976 authored by Robert Lyon's avatar Robert Lyon
Browse files

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's avatarRobert Lyon <robertl@catalyst.net.nz>
parent dacb2049
......@@ -114,7 +114,7 @@ abstract class Auth {
$this->institution = $instance->institution;
$this->instancename = $instance->instancename;
$this->priority = $instance->priority;
$this->active = $instance->active;
$this->active = (isset($instance->active) ? $instance->active : 1); // We need to check if column exists yet via upgrade and set a default if not
$this->authname = $instance->authname;
// Return now if the plugin type doesn't require any config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment