Skip to content

Commit

Permalink
Fixed issue #10641: pie chart error will make statistics reports unav…
Browse files Browse the repository at this point in the history
…ailable
  • Loading branch information
olleharstedt committed Mar 8, 2016
1 parent 2aab48c commit 0100dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/statistics_helper.php
Expand Up @@ -236,7 +236,7 @@ function createChart($iQuestionID, $iSurveyID, $type=null, $lbl, $gdata, $grawda
while (isset ($gdata[$i]))
{
$aHelperArray=array_keys($lbl);
if ($gdata[$i] == 0 || ($sQuestionType == "O" && substr($aHelperArray[$i],0,strlen($sLanguageCode->gT("Comments")))==$sLanguageCode->gT("Comments")))
if ($gdata[$i] == 0 || ($sQuestionType == "O" && substr($aHelperArray[$i],0,strlen(gT("Comments")))==gT("Comments")))
{
array_splice ($gdata, $i, 1);
}
Expand Down

0 comments on commit 0100dee

Please sign in to comment.