Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Array problems with limesurvey 2.5

  • drogu02
  • drogu02's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #132014 by drogu02
Array problems with limesurvey 2.5 was created by drogu02
I have php 5.3.17 on my installation

Parse error: syntax error, unexpected '[' in /srv/www/vhosts/dev-sondage.cspq.qc/application/models/QuestionGroup.php on line 75

Replace
public function attributeLabels()
{
return [
'language' => gt('Language'),
'group_name' => gt('Group name')
];
}

by
public function attributeLabels()
{
return array (
'language' => gt('Language'),
'group_name' => gt('Group name')
);
}
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • New Member
  • New Member
More
9 years 2 months ago #132042 by LouisGac
Replied by LouisGac on topic Array problems with limesurvey 2.5
Hey Drogu02,

thank you for your report, they are always very appreciated.
You can also use the bug tracker rather than the forum, so it's easier for us to organize debugging :
bugs.limesurvey.org/my_view_page.php

You even offer a valid fix for it, so don't hesitate to submit a Pull Request to the Git Repository :
github.com/LimeSurvey/LimeSurvey/
help.github.com/articles/using-pull-requests/
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose