Index: trunk/extensions/Translate/tag/TPParse.php |
— | — | @@ -76,13 +76,11 @@ |
77 | 77 | $sections = $this->sections; |
78 | 78 | $highest = 0; |
79 | 79 | foreach ( array_keys( $this->dbSections ) as $key ) { |
80 | | - if ( !is_int( $key ) ) continue; |
81 | | - $highest = max( $highest, $key ); |
| 80 | + $highest = max( $highest, intval( $key ) ); |
82 | 81 | } |
83 | 82 | |
84 | 83 | foreach ( $sections as $_ ) { |
85 | | - if ( !is_int( $_->id ) ) continue; |
86 | | - $highest = max( $_->id, $highest ); |
| 84 | + $highest = max( $highest, intval( $_->id ) ); |
87 | 85 | } |
88 | 86 | |
89 | 87 | foreach ( $sections as $s ) { |