diff --git a/core/ajax/vcategories/favorites.php b/core/ajax/vcategories/favorites.php
index 20accea61cdbabe0d37c42ad9b12f0ae9a11bc48..62ae07a24f6a0e584ae5042b7b4e822419716ce8 100644
--- a/core/ajax/vcategories/favorites.php
+++ b/core/ajax/vcategories/favorites.php
@@ -25,6 +25,6 @@ if(is_null($type)) {
 }
 
 $categories = new OC_VCategories($type);
-$ids = $categories->getFavorites($type)) {
+$ids = $categories->getFavorites($type));
 
 OC_JSON::success(array('ids' => $ids));