Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Feb 7, 2017
1 parent df3a2ad commit 080782e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -251,10 +251,10 @@ public function fixSurveyAttribute($event)

$event = new PluginEvent('afterFindSurvey');
App()->getPluginManager()->dispatchEvent($event);
// set the attributes we allow to be fixed
$allowedAttributes = array( 'template','usecookie', 'allowprev',
'showxquestions', 'shownoanswer', 'showprogress', 'questionindex',
'usecaptcha', 'showgroupinfo', 'showqnumcode', 'navigationdelay');
// set the attributes we won't allow to fix
foreach ($allowedAttributes as $attribute){
if (!is_null($event->get($attribute)))
{
Expand Down

0 comments on commit 080782e

Please sign in to comment.