Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
edfbb8f2
Commit
edfbb8f2
authored
Feb 15, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 15, 2017
Browse files
Merge "Bug 1654894: Institution defaultmembershipperiod being set to 0"
parents
8665b925
e2a12725
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/institution.php
View file @
edfbb8f2
...
...
@@ -44,7 +44,7 @@ class Institution {
'registerallowed'
=>
0
,
'registerconfirm'
=>
1
,
'theme'
=>
null
,
'defaultmembershipperiod'
=>
0
,
'defaultmembershipperiod'
=>
null
,
'maxuseraccounts'
=>
null
,
'expiry'
=>
null
,
'expirymailsent'
=>
0
,
...
...
@@ -131,11 +131,13 @@ class Institution {
break
;
case
'id'
:
case
'defaultmembershipperiod'
:
case
'maxuseraccounts'
:
case
'showonlineusers'
:
$value
=
(
int
)
$value
;
break
;
case
'defaultmembershipperiod'
:
$value
=
is_null
(
$value
)
?
null
:
(
int
)
$value
;
break
;
}
if
(
array_key_exists
(
$name
,
self
::
$dbfields
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment