Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php |
— | — | @@ -39,11 +39,11 @@ |
40 | 40 | foreach ( $last_col->getContent() as $value ) { |
41 | 41 | // handle each value only if it's of type Number or NAry |
42 | 42 | if ( $value instanceof SMWNumberValue ) { |
43 | | - if ( method_exists( $event_date, 'getValueKey' ) ) { |
44 | | - $num = $event_date->getValueKey(); |
| 43 | + if ( method_exists( $value, 'getValueKey' ) ) { |
| 44 | + $num = $value->getValueKey(); |
45 | 45 | } |
46 | 46 | else { |
47 | | - $num = $event_date->getNumericValue(); |
| 47 | + $num = $value->getNumericValue(); |
48 | 48 | } |
49 | 49 | } elseif ( $value instanceof SMWNAryValue ) { |
50 | 50 | $inner_values = $value->getDVs(); |