Fix game post

This commit is contained in:
Ruben 2016-09-12 18:05:25 +01:00
parent 2072ba5744
commit ef2dd8b746
1 changed files with 3 additions and 3 deletions

View File

@ -95,16 +95,16 @@ class ScoreControllerProvider implements ControllerProviderInterface
// attributes
$hit->getAttributes()->setGlasses($data_hit['glasses']);
foreach($hit->getAttributes()->ATTRIBUTES as $attribute) {
foreach($hit->getAttributes()::$ATTRIBUTES as $attribute) {
$hit->getAttributes()->setAttribute($attribute, $data_hit[$attribute]);
}
// emotions
foreach($hit->getEmotions()->EMOTIONS as $emotion) {
foreach($hit->getEmotions()::$EMOTIONS as $emotion) {
$hit->getEmotions()->setEmotion($emotion, $data_hit['emotions'][$emotion]);
}
//expressions
foreach($hit->getExpressions()->EXPRESSIONS as $expression) {
foreach($hit->getExpressions()::$EXPRESSIONS as $expression) {
$hit->getExpressions()->setExpression($expression, $data_hit['expressions'][$expression]);
}