Skip to content

Commit

Permalink
Admin: Hotfix deadly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek committed May 27, 2021
1 parent 51928f1 commit d1211d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Redbit\SimpleShop\WpPlugin;

use Collator;
use VyfakturujAPIException;

class Admin {
Expand Down Expand Up @@ -129,7 +130,7 @@ protected function load_simpleshop_products() {
}

// Sort by name - Collator support UTF-8, but requires `intl` extension
if ( class_exists( \Collator::class ) ) {
if ( class_exists( Collator::class ) ) {
( new Collator( 'cz_CZ' ) )->asort( $values );
} else {
asort( $values, SORT_FLAG_CASE | SORT_NATURAL );
Expand Down

0 comments on commit d1211d1

Please sign in to comment.