Skip to content

Commit

Permalink
Fixed issue #12096: PHP notice when editing Array number
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jan 31, 2017
1 parent 0f77c17 commit 88ab241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/questions.php
Expand Up @@ -997,7 +997,7 @@ public function getSubquestionRow( $surveyid, $gid, $qid, $codes, $language, $fi
{
$view ='_answer_option';
$aData = array(
'assessmentvisible' => $assessmentvisible ? 1 : 0,
'assessmentvisible' => $assessmentvisible ? true : false,
'assessment_value' => '',
'answer' => '',
'sortorder' => $newPosition,
Expand Down
Expand Up @@ -239,7 +239,7 @@
id="add-input-javascript-datas"
data-url="<?php echo App()->createUrl('/admin/questions/sa/getSubquestionRowForAllLanguages/');?>"
data-quickurl="<?php echo App()->createUrl('/admin/questions/sa/getSubquestionRowQuickAdd/');?>"
data-assessmentvisible="<?php echo ($assessmentvisible ? "1" : "0"); ?>"
data-assessmentvisible="<?php echo (isset($assessmentvisible) && $assessmentvisible==true ? "1" : "0"); ?>"
data-errormessage="An error occured while processing the ajax request."
data-surveyid="<?php echo $surveyid;?>"
data-gid="<?php echo $gid;?>"
Expand Down

0 comments on commit 88ab241

Please sign in to comment.