diff --git a/core/js/js.js b/core/js/js.js
index 234cc328dfb82994d347099a5af7d88d36a772a0..808c2c28adfcd8114f5a60bc94a78e027753e201 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -117,7 +117,7 @@ var OC={
 	/**
 	 * Generates the absolute url for the given relative url, which can contain parameters.
 	 * @param {string} url
-	 * @param params
+	 * @param [params] params
 	 * @return {string} Absolute URL for the given relative URL
 	 */
 	generateUrl: function(url, params) {