Skip to content

Commit

Permalink
Fixed issue #13008: SPSS export invalid A0 for string
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Dec 16, 2017
1 parent d75a7e9 commit 8ad0150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/export_helper.php
Expand Up @@ -2110,8 +2110,8 @@ function stringSize($sColumn)
->order("{$lengthWord}(".Yii::app()->db->quoteColumnName($sColumn).") DESC")
->limit(1)
->queryScalar();

return (int)$lengthReal;
// PSPP didn't accept A0 then min value to 1
return max(1,(int)$lengthReal);
}
/**
* Find the numeric size according DB size for existing question for SPSS export
Expand Down

0 comments on commit 8ad0150

Please sign in to comment.