Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php |
— | — | @@ -39,6 +39,10 @@ |
40 | 40 | protected function getResultText( SMWQueryResult $res, $outputmode ) { |
41 | 41 | $numbers = $this->getNumbers( $res ); |
42 | 42 | |
| 43 | + if ( count( $numbers ) == 0 ) { |
| 44 | + return ''; |
| 45 | + } |
| 46 | + |
43 | 47 | switch ( $this->mFormat ) { |
44 | 48 | case 'max': |
45 | 49 | return max( $numbers ); |
Index: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php |
— | — | @@ -140,7 +140,6 @@ |
141 | 141 | $max = reset( $tags ) or $max = 1; |
142 | 142 | $maxSizeIncrease = $this->maxSize - $this->minTagSize; |
143 | 143 | |
144 | | - |
145 | 144 | // Loop over the tags, and replace their count by a size. |
146 | 145 | foreach ( $tags as &$tag ) { |
147 | 146 | switch ( $this->sizeMode ) { |
Index: trunk/extensions/SemanticResultFormats/RELEASE-NOTES |
— | — | @@ -2,6 +2,10 @@ |
3 | 3 | http://semantic-mediawiki.org/wiki/Semantic_Result_Formats |
4 | 4 | |
5 | 5 | |
| 6 | +== SRF 1.6.2 == |
| 7 | + |
| 8 | +* Fixed error in math printer when there are no numerical results. |
| 9 | + |
6 | 10 | == SRF 1.6.1 == |
7 | 11 | |
8 | 12 | Released on August 20, 2011. |