Removed useless ORDER BY from query.

This commit is contained in:
Thomas Tanghus 2012-10-19 16:15:47 +02:00
parent 2ea4fed448
commit 394e4e4d5f

View file

@ -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));