Sort only when importers exist. Props aaroncampbell. fixes #13806

git-svn-id: http://svn.automattic.com/wordpress/trunk@15181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-09 20:33:16 +00:00
parent 64f3e40880
commit e47306254c
1 changed files with 1 additions and 3 deletions

View File

@ -83,11 +83,10 @@ foreach ( $popular_importers as $pop_importer => $pop_data ) {
$importers[$pop_importer] = $popular_importers[$pop_importer];
}
uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
if (empty ($importers)) {
echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful
} else {
uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
?>
<table class="widefat" cellspacing="0">
@ -140,4 +139,3 @@ if ( current_user_can('install_plugins') )
include ('admin-footer.php');
?>