Index: trunk/extensions/CategoryMultisort/CategoryMultisort.class.php |
— | — | @@ -106,13 +106,15 @@ |
107 | 107 | } |
108 | 108 | } |
109 | 109 | |
| 110 | + $sortkey = trim( $sortkey ); |
| 111 | + |
110 | 112 | $type = array_key_exists( 'type', $this->sortkeySettings ) |
111 | 113 | ? $this->sortkeySettings['type'] : ''; |
112 | 114 | |
113 | | - if ( $type == 'int' ) { |
| 115 | + if ( $type == 'int' && $sortkey != '' ) { |
114 | 116 | $sortkey = strval( intval( $sortkey ) ); |
115 | 117 | } |
116 | 118 | |
117 | | - return $wgContLang->convert( trim( $sortkey ) ); |
| 119 | + return $wgContLang->convert( $sortkey ); |
118 | 120 | } |
119 | 121 | } |