Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quiz-3157376
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
quiz-3157376
Commits
46da2d23
Commit
46da2d23
authored
14 years ago
by
falcon
Browse files
Options
Downloads
Patches
Plain Diff
#824762
reported by fuzzy76: Fixed: E_ALL Compliance
parent
9e7f7690
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
question_types/multichoice/multichoice.classes.inc
+1
-1
1 addition, 1 deletion
question_types/multichoice/multichoice.classes.inc
quiz.module
+2
-2
2 additions, 2 deletions
quiz.module
with
3 additions
and
3 deletions
question_types/multichoice/multichoice.classes.inc
+
1
−
1
View file @
46da2d23
...
...
@@ -149,7 +149,7 @@ class MultichoiceQuestion extends QuizQuestion {
$ids_to_delete
[]
=
$res_o
->
id
;
}
for
(
$i
=
0
;
is
_array
(
$this
->
node
->
alternatives
[
$i
]);
$i
++
)
{
for
(
$i
=
0
;
is
set
(
$this
->
node
->
alternatives
[
$i
]);
$i
++
)
{
$short
=
$this
->
node
->
alternatives
[
$i
];
if
(
drupal_strlen
(
$this
->
node
->
alternatives
[
$i
][
'answer'
])
>
0
)
{
// If new alternative
...
...
This diff is collapsed.
Click to expand it.
quiz.module
+
2
−
2
View file @
46da2d23
...
...
@@ -2813,9 +2813,9 @@ function _quiz_get_question_types() {
foreach
(
$to_return
as
$key
=>
$value
)
{
$types
[]
=
$key
;
}
$sql
=
'
SELECT type, name, description
$sql
=
"
SELECT type, name, description
FROM
{
node_type
}
WHERE type IN ('
.
implode
(
', '
,
$types
)
.
')
'
;
WHERE type IN ('
"
.
implode
(
"
', '
"
,
$types
)
.
"
')
"
;
$res
=
db_query
(
$sql
,
$types
);
while
(
$res_o
=
db_fetch_object
(
$res
))
{
$to_return
[
$res_o
->
type
][
'name'
]
=
check_plain
(
$res_o
->
name
);
...
...
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