Skip to content

Commit 0adc66f

Browse files
committed
fixed: check correct setting for auto mark correct
1 parent 3460af2 commit 0adc66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ function questions_auto_mark_answer_correct(ElggEntity $container, ElggUser $use
442442
}
443443

444444
// check group setting
445-
$group_setting = $container->getPrivateSetting('questions_auto_mark_correct');
445+
$group_setting = $container->getPluginSetting('questions', 'auto_mark_correct');
446446

447447
return ($group_setting === 'yes');
448448
}

0 commit comments

Comments
 (0)