From 4b3b0f191642ce46daffd0f9eaccd79dfd9d3eae Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Thu, 23 May 2013 11:19:04 +1200 Subject: [PATCH] Fixing broken Add website --- themes/default/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/default/common.js b/themes/default/common.js index adc6d6ed06..a2ade4c846 100644 --- a/themes/default/common.js +++ b/themes/default/common.js @@ -380,6 +380,9 @@ var piwikHelper = { */ getApiFormatTextarea: function (textareaContent) { + if(typeof textareaContent == 'undefined') { + return ''; + } return textareaContent.trim().split("\n").join(','); } -- GitLab