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
be2ae0d2
Commit
be2ae0d2
authored
Sep 14, 2007
by
Donal McMullan
Browse files
Add 'inuse' to the form... the authinstances that are being used
parent
09ff7475
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/institutions.php
View file @
be2ae0d2
...
...
@@ -105,6 +105,13 @@ if ($institution || $add) {
$instancearray
[]
=
$val
->
id
;
}
$instancestring
=
implode
(
','
,
$instancearray
);
$inuserecords
=
array
();
$records
=
get_records_sql_assoc
(
'select authinstance, count(id) from {usr} where authinstance in ('
.
$instancestring
.
') group by authinstance'
);
foreach
(
$records
as
$record
)
{
$inuserecords
[]
=
$record
->
authinstance
;
}
$inuse
=
implode
(
','
,
$inuserecords
);
$authtypes
=
auth_get_available_auth_types
(
$institution
);
}
else
{
...
...
@@ -138,6 +145,11 @@ if ($institution || $add) {
'value'
=>
true
,
'ignore'
=>
!
$add
),
'inuse'
=>
array
(
'type'
=>
'hidden'
,
'value'
=>
$inuse
,
'id'
=>
'inuse'
),
'i'
=>
array
(
'type'
=>
'hidden'
,
'value'
=>
$institution
,
...
...
@@ -159,7 +171,7 @@ if ($institution || $add) {
'options'
=>
$authinstances
,
'authtypes'
=>
$authtypes
,
'instancearray'
=>
$instancearray
,
'instancestring'
=>
implode
(
','
,
$instance
array
)
,
'instancestring'
=>
$instance
string
,
'institution'
=>
$institution
,
'help'
=>
true
,
'ignore'
=>
count
(
$authtypes
)
==
0
...
...
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