]> source.dussan.org Git - nextcloud-server.git/commitdiff
Forgot typeof condition
authorThomas Tanghus <thomas@tanghus.net>
Sat, 1 Jun 2013 14:47:34 +0000 (16:47 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Sat, 1 Jun 2013 14:47:34 +0000 (16:47 +0200)
core/js/octemplate.js

index 352a23c4dc78ae53bc7e699b186056e7ff819ecc..e69c6cc56e066fed3a03c3054fdfa040da2300c0 100644 (file)
@@ -61,7 +61,9 @@
 
                        if(typeof this.options.escapeFunction === 'function') {
                                for (var key = 0; key < this.vars.length; key++) {
-                                       this.vars[key] = self.options.escapeFunction(this.vars[key]);
+                                       if(typeof this.vars[key] === 'string') {
+                                               this.vars[key] = self.options.escapeFunction(this.vars[key]);
+                                       }
                                }
                        }