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
d578386e
Commit
d578386e
authored
Feb 13, 2007
by
Martyn Smith
Committed by
Martyn Smith
Feb 13, 2007
Browse files
Fixed bug where get/post vars that match "empty()" were considered missing
parent
640f7ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/web.php
View file @
d578386e
...
...
@@ -461,12 +461,11 @@ function _param_retrieve($name) {
else
if
(
isset
(
$_GET
[
$name
]))
{
$value
=
$_GET
[
$name
];
}
if
(
empty
(
$value
)
&&
func_num_args
()
==
2
)
{
else
if
(
func_num_args
()
==
2
)
{
$php_work_around
=
func_get_arg
(
1
);
return
array
(
$php_work_around
,
true
);
}
if
(
empty
(
$value
))
{
else
{
throw
new
ParameterException
(
"Missing parameter '
$name
' and no default supplied"
);
}
...
...
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