Index: trunk/extensions/Translate/tag/TPParse.php |
— | — | @@ -31,8 +31,8 @@ |
32 | 32 | |
33 | 33 | $sections = $this->sections; |
34 | 34 | $highest = 0; |
35 | | - if ( count($this->dbSections) ) { |
36 | | - $highest = call_user_func_array( 'max', array_keys( $this->dbSections ) ); |
| 35 | + foreach ( array_keys( $this->dbSections ) as $key ) { |
| 36 | + $highest = max( $highest, $key ); |
37 | 37 | } |
38 | 38 | |
39 | 39 | foreach ( $sections as $_ ) $highest = max( $_->id, $highest ); |