Removed useless ORDER BY from query.

remotes/origin/stable5
Thomas Tanghus 14 years ago
parent 2ea4fed448
commit 394e4e4d5f
  1. 2
      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));

Loading…
Cancel
Save