Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
7837c01b
Commit
7837c01b
authored
10 years ago
by
Olivier PEREZ
Browse files
Options
Downloads
Patches
Plain Diff
Fix form control when editing vote
parent
8604cacc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
studs.php
+2
-2
2 additions, 2 deletions
studs.php
with
2 additions
and
2 deletions
studs.php
+
2
−
2
View file @
7837c01b
...
...
@@ -62,8 +62,8 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
$editedVote
=
filter_input
(
INPUT_POST
,
'save'
,
FILTER_VALIDATE_INT
);
$choices
=
$inputService
->
filterArray
(
$_POST
[
'choices'
],
FILTER_VALIDATE_REGEXP
,
[
'options'
=>
[
'regexp'
=>
'/^[012]$/'
]]);
if
(
empty
(
$
nam
e
))
{
$message
=
new
Message
(
'danger'
,
_
(
'
Name is incorrect
.'
));
if
(
empty
(
$
editedVot
e
))
{
$message
=
new
Message
(
'danger'
,
_
(
'
Something is going wrong..
.'
));
}
if
(
count
(
$choices
)
!=
count
(
$_POST
[
'choices'
]))
{
$message
=
new
Message
(
'danger'
,
_
(
'There is a problem with your choices.'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment