Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php |
— | — | @@ -71,11 +71,13 @@ |
72 | 72 | if ( $this->mFormat == 'sum' || $this->mFormat == 'average' ) { |
73 | 73 | $sum += $num; |
74 | 74 | } elseif ( $this->mFormat == 'min' ) { |
75 | | - if ( $min == '' || $num < $min ) |
| 75 | + if ( $min === '' || $num < $min ) { |
76 | 76 | $min = $num; |
| 77 | + } |
77 | 78 | } elseif ( $this->mFormat == 'max' ) { |
78 | | - if ( $max == '' || $num > $max ) |
| 79 | + if ( $max === '' || $num > $max ) { |
79 | 80 | $max = $num; |
| 81 | + } |
80 | 82 | } |
81 | 83 | } |
82 | 84 | } |