Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
User expired
tcexam_uibk
Commits
e9e7f530
Commit
e9e7f530
authored
Feb 26, 2015
by
User expired
Browse files
resolved code error concerning number of answers
parent
96b6f4e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
admin/code/tce_edit_test.php
admin/code/tce_edit_test.php
+2
-2
No files found.
admin/code/tce_edit_test.php
View file @
e9e7f530
...
@@ -317,7 +317,7 @@ switch($menu_mode) {
...
@@ -317,7 +317,7 @@ switch($menu_mode) {
$sqlq
.
=
$sql_answer_position
;
$sqlq
.
=
$sql_answer_position
;
$sqlq
.
=
' GROUP BY answer_question_id'
;
$sqlq
.
=
' GROUP BY answer_question_id'
;
if
(
$tsubset_answers
>
0
)
{
if
(
$tsubset_answers
>
0
)
{
$sqlq
.
=
' HAVING (COUNT(answer_id)
>
='
.
(
$tsubset_answers
-
1
)
.
')'
;
$sqlq
.
=
' HAVING (COUNT(answer_id)='
.
(
$tsubset_answers
-
1
)
.
')'
;
//changed, ESM
}
}
$sqlq
.
=
' )'
;
$sqlq
.
=
' )'
;
}
elseif
(
$tsubset_type
==
2
)
{
}
elseif
(
$tsubset_type
==
2
)
{
...
@@ -330,7 +330,7 @@ switch($menu_mode) {
...
@@ -330,7 +330,7 @@ switch($menu_mode) {
$sqlq
.
=
$sql_answer_position
;
$sqlq
.
=
$sql_answer_position
;
$sqlq
.
=
' GROUP BY answer_question_id'
;
$sqlq
.
=
' GROUP BY answer_question_id'
;
if
(
$tsubset_answers
>
0
)
{
if
(
$tsubset_answers
>
0
)
{
$sqlq
.
=
' HAVING (COUNT(answer_id)
>
='
.
$tsubset_answers
.
')'
;
$sqlq
.
=
' HAVING (COUNT(answer_id)='
.
$tsubset_answers
.
')'
;
//changed, ESM
}
}
$sqlq
.
=
' )'
;
$sqlq
.
=
' )'
;
}
elseif
(
$tsubset_type
==
4
)
{
}
elseif
(
$tsubset_type
==
4
)
{
...
...
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