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
c985d103
Commit
c985d103
authored
Apr 21, 2009
by
Richard Mansfield
Browse files
Pass exception message to avoid warning in the logs
parent
a2136d1f
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
c985d103
...
...
@@ -2030,7 +2030,7 @@ class View {
$userid
=
$USER
->
get
(
'id'
);
require_once
(
get_config
(
'libroot'
)
.
'group.php'
);
if
(
!
group_user_access
(
$groupid
))
{
throw
new
AccessDeniedException
();
throw
new
AccessDeniedException
(
get_string
(
'accessdenied'
,
'error'
)
);
}
$from
=
'
FROM {view} v
...
...
@@ -2488,7 +2488,7 @@ function objection_form_submit(Pieform $form, $values) {
global
$USER
,
$view
,
$artefact
;
if
(
!
$USER
->
is_logged_in
())
{
throw
new
AccessDeniedException
();
throw
new
AccessDeniedException
(
get_string
(
'accessdenied'
,
'error'
)
);
}
require_once
(
'activity.php'
);
...
...
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