diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-10-19 16:15:47 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-10-19 16:15:47 +0200 |
commit | 394e4e4d5fe5cbd5e52df63984a67dc0786685a4 (patch) | |
tree | 59c289c6b0682577ae0de580f3b54706712fcdc7 /lib/vcategories.php | |
parent | 2ea4fed448d9c065622dd13b85ab618685932235 (diff) | |
download | nextcloud-server-394e4e4d5fe5cbd5e52df63984a67dc0786685a4.tar.gz nextcloud-server-394e4e4d5fe5cbd5e52df63984a67dc0786685a4.zip |
Removed useless ORDER BY from query.
Diffstat (limited to 'lib/vcategories.php')
-rw-r--r-- | lib/vcategories.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |