Skip to content

Commit

Permalink
Fixed issue #07928: Export empty token table don't export header
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jun 17, 2013
1 parent f51767d commit b55deac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/export_helper.php
Expand Up @@ -1725,14 +1725,14 @@ function tokensExport($iSurveyID)
$tokenoutput .=" <".str_replace(","," ",$attrfielddescr[$attr_name]['description']).">";
}
$tokenoutput .="\n";
echo $tokenoutput;
$tokenoutput="";

// Export token line by line and fill $aExportedTokens with token exported
Yii::import('application.libraries.Date_Time_Converter', true);

$aExportedTokens = array();

foreach($bresult as $brow)
{

if (trim($brow['validfrom']!=''))
{
$datetimeobj = new Date_Time_Converter($brow['validfrom'] , "Y-m-d H:i:s");
Expand Down

0 comments on commit b55deac

Please sign in to comment.