From bd8ca8ff8e4caf745722e329d5113decf27ed7b4 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 29 Nov 2006 08:18:34 +0000 Subject: [PATCH] No sort if no results. Props mByte in wp-testers list. git-svn-id: http://svn.automattic.com/wordpress/trunk@4538 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index f9d6cc868b..7a6c9edbaf 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1025,7 +1025,8 @@ function meta_form() { GROUP BY meta_key ORDER BY meta_id DESC LIMIT $limit" ); - natcasesort( $keys ); + if ( $keys ) + natcasesort($keys); ?>