| @@ -52,9 +52,10 @@ | ||
| 52 | 52 | $answers = $this->get_answers(); |
| 53 | 53 | |
| 54 | 54 | if ( $answers ) { |
| 55 | 55 | foreach ( $answers as $key => $option ) { |
| 56 | - if ( ( $option['is_true'] == 'yes' ) && ( $this->is_selected_option( $option, $user_answer ) ) ) { | |
| 56 | + $data = $option->get_data(); | |
| 57 | + if ( ( $data['is_true'] == 'yes' ) && ( $this->is_selected_option( $data, $user_answer ) ) ) { | |
| 57 | 58 | $return['correct'] = true; |
| 58 | 59 | $return['mark'] = floatval( $this->get_mark() ); |
| 59 | 60 | break; |
| 60 | 61 | } |