Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-10-19 18:15:47 +0400
committerThomas Tanghus <thomas@tanghus.net>2012-10-19 18:15:47 +0400
commit394e4e4d5fe5cbd5e52df63984a67dc0786685a4 (patch)
tree59c289c6b0682577ae0de580f3b54706712fcdc7 /lib/vcategories.php
parent2ea4fed448d9c065622dd13b85ab618685932235 (diff)
Removed useless ORDER BY from query.
Diffstat (limited to 'lib/vcategories.php')
-rw-r--r--lib/vcategories.php2
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));