Skip to content

Commit

Permalink
Fixed issue #4144: vvimport.php producing infinite loop
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8415 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Feb 19, 2010
1 parent f53dd22 commit b1d4323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/vvimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
$fieldnames=explode("\t", trim($bigarray[1]));

$fieldcount=count($fieldnames)-1;
while (trim($fieldnames[$fieldcount]) == "") // get rid of blank entries
while (trim($fieldnames[$fieldcount]) == "" && $fieldcount > -1) // get rid of blank entries
{
unset($fieldnames[$fieldcount]);
$fieldcount--;
Expand Down

0 comments on commit b1d4323

Please sign in to comment.