View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05174Bug reportsImport/Exportpublic2011-05-25 12:21
Reporteruser14045Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91 
Fixed in Version1.91+ 
Summary05174: Export throws warning
Description

I have created a survey using tokens and want to export the results for external applications (URL: http://mydomain/admin/admin.php?action=exportresults&sid=17655)

I did not select any of the token fields. The script throws a couple of PHP warnings in line 369 and similar lines:

( ! ) Warning: in_array() expects parameter 2 to be array, null given in /vol/www/mydomain/htdocs/admin/exportresults.php on line 369

if (in_array('first_name',$_POST['attribute_select']))

I fixed it for myself in line 367:
OLD: if ($tokenTableExists && $thissurvey['anonymized']=='N')
NEW: if ($tokenTableExists && $thissurvey['anonymized']=='N' && is_array($_POST['attribute_select']))

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)10062
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionMysql 5 something
Server OS (if known)Ubuntu
Webserver software & version (if known)Apache Something
PHP Version5.3 using XDEBUG

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-05-18 22:49

administrator   ~15055

Fixed in rev. 10090

c_schmitz

c_schmitz

2011-05-18 22:49

administrator   ~15056

Thank you very much - your solution is correct.

c_schmitz

c_schmitz

2011-05-25 12:21

administrator   ~15102

Released new 1.91+ version.

Issue History

Date Modified Username Field Change
2011-05-17 22:02 user14045 New Issue
2011-05-18 22:40 c_schmitz Assigned To => c_schmitz
2011-05-18 22:40 c_schmitz Status new => assigned
2011-05-18 22:49 c_schmitz Note Added: 15055
2011-05-18 22:49 c_schmitz Status assigned => resolved
2011-05-18 22:49 c_schmitz Fixed in Version => 1.91+
2011-05-18 22:49 c_schmitz Resolution open => fixed
2011-05-18 22:49 c_schmitz Note Added: 15056
2011-05-25 12:21 c_schmitz Note Added: 15102
2011-05-25 12:21 c_schmitz Status resolved => closed