Changes between Initial Version and Version 2 of Ticket #27413
- Timestamp:
- 03/21/2014 02:29:43 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27413
- Property Keywords has-patch close added
-
Property
Component
changed from
General
toTaxonomy
-
Ticket #27413 – Description
initial v2 1 1 2 PHP Warning: min(): Array must contain at least one element in /var/vhost/xxxx/wp-includes/category-template.php on line 658 2 3 PHP Warning: max(): Array must contain at least one element in /var/vhost/xxxx/wp-includes/category-template.php on line 659 3 4 4 I'm not sure how to reproduce the bug but it can be fixed easily by replacing min( $counts ) with count( $counts ) > 0 ? min( $counts ) : 0 and replacing max( $counts ) with (count( $counts ) > 0 ? max( $counts ) : 0). Or by checking whether $counts is empty and returning early.5 I'm not sure how to reproduce the bug but it can be fixed easily by replacing `min( $counts )` with `count( $counts ) > 0 ? min( $counts ) : 0` and replacing `max( $counts )` with `(count( $counts ) > 0 ? max( $counts ) : 0)`. Or by checking whether $counts is empty and returning early.