Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
info
mahara-museum
Commits
30d45382
Commit
30d45382
authored
Jan 23, 2008
by
Nigel McNie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop the institution form crashing when saving it. Fixes #1870.
parent
8b7243af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
htdocs/admin/users/institutions.php
htdocs/admin/users/institutions.php
+1
-1
No files found.
htdocs/admin/users/institutions.php
View file @
30d45382
...
...
@@ -251,7 +251,7 @@ else {
}
function
institution_validate
(
Pieform
$form
,
$values
)
{
if
(
!
$form
->
get_error
(
'name'
)
&&
record_exists
(
'institution'
,
'name'
,
$values
[
'name'
]))
{
if
(
!
empty
(
$values
[
'name'
])
&&
!
$form
->
get_error
(
'name'
)
&&
record_exists
(
'institution'
,
'name'
,
$values
[
'name'
]))
{
$form
->
set_error
(
'name'
,
get_string
(
'institutionnamealreadytaken'
,
'admin'
));
}
}
...
...
Write
Preview
Markdown
is supported
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