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
35eca971
Commit
35eca971
authored
Oct 24, 2007
by
Nigel McNie
Browse files
Correct the regular expression testing that the artefactchooser returned an integer
parent
300e9dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/form/elements/artefactchooser.php
View file @
35eca971
...
...
@@ -70,7 +70,7 @@ function pieform_element_artefactchooser_get_value(Pieform $form, $element) {
return
null
;
}
if
(
preg_match
(
'/^
(
\d+
)*)
$/'
,
$value
))
{
if
(
preg_match
(
'/^\d+$/'
,
$value
))
{
return
intval
(
$value
);
}
}
...
...
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