Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php |
— | — | @@ -680,6 +680,7 @@ |
681 | 681 | public function isNumeric() { |
682 | 682 | $sig = $this->getSignature(); |
683 | 683 | $valueIndex = $this->getValueIndex(); |
| 684 | + if ( $valueIndex < 0 ) { return false; } |
684 | 685 | |
685 | 686 | return $sig { $valueIndex } == 'n' || $sig { $valueIndex } == 'f'; |
686 | 687 | } |
— | — | @@ -791,4 +792,4 @@ |
792 | 793 | return ''; // empty unit |
793 | 794 | } |
794 | 795 | |
795 | | -} |
\ No newline at end of file |
| 796 | +} |