From 394e4e4d5fe5cbd5e52df63984a67dc0786685a4 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 19 Oct 2012 16:15:47 +0200 Subject: [PATCH] Removed useless ORDER BY from query. --- lib/vcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vcategories.php b/lib/vcategories.php index c958368238c..fb315ca960f 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -114,7 +114,7 @@ class OC_VCategories { public static function isEmpty($type, $user = null) { $user = is_null($user) ? OC_User::getUser() : $user; $sql = 'SELECT COUNT(*) FROM `' . self::CATEGORY_TABLE . '` ' - . 'WHERE `uid` = ? AND `type` = ? ORDER BY `category`'; + . 'WHERE `uid` = ? AND `type` = ?'; try { $stmt = OCP\DB::prepare($sql); $result = $stmt->execute(array($user, $type));