Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-26 14:41:24 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-26 14:41:24 +0400
commit2ddd1b579b36cda42141040ee1c68ee8e476497e (patch)
tree8317df7008799b8964ec1d9affbafdaf7930719a /plugins/Feedback/API.php
parent95f97449049573044f3ee12aabd26166f084c2a4 (diff)
(w/ feedback) should only be displayed when there really is some feedback
Diffstat (limited to 'plugins/Feedback/API.php')
-rw-r--r--plugins/Feedback/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Feedback/API.php b/plugins/Feedback/API.php
index 81993f3ecb..46e63ed49a 100644
--- a/plugins/Feedback/API.php
+++ b/plugins/Feedback/API.php
@@ -45,11 +45,11 @@ class API extends \Piwik\Plugin\API
$body = sprintf("Feature: %s\nLike: %s\n", $featureName, $likeText, $message);
- $feedbackMessage = " \n";
+ $feedbackMessage = "";
if (!empty($message) && $message != 'undefined') {
$feedbackMessage = sprintf("Feedback:\n%s\n", trim($message));
}
- $body .= $feedbackMessage;
+ $body .= $feedbackMessage ? $feedbackMessage : " \n";
$subject = sprintf("%s for %s %s",
empty($like) ? "-1" : "+1",