Permalink
Browse files

Fix html format

  • Loading branch information...
1 parent b6e9528 commit ef82c3748f9c11e8fd0939222d2cac51919913a2 @cdujeu cdujeu committed Jun 1, 2016
Showing with 5 additions and 4 deletions.
  1. +5 −4 core/src/plugins/core.notifications/class.AJXP_NotificationCenter.php
@@ -390,8 +390,12 @@ public function loadUserAlerts(\Psr\Http\Message\ServerRequestInterface $request
$cumulated[$path] = $node;
}
}
+ if ($format == "html") {
+ $responseInterface->getBody()->write("</ul>");
+ return;
+ }
$index = 1;
- foreach ($cumulated as $nodeToSend) {
+ foreach ($cumulated as $path => $nodeToSend) {
$nodeOcc = $nodeToSend->event_occurence > 1 ? " (".$nodeToSend->event_occurence.")" : "";
if(isSet($httpVars["merge_description"]) && $httpVars["merge_description"] == "true"){
if(isSet($httpVars["description_as_label"]) && $httpVars["description_as_label"] == "true"){
@@ -419,9 +423,6 @@ public function loadUserAlerts(\Psr\Http\Message\ServerRequestInterface $request
}
- if ($format == "html") {
- $responseInterface->getBody()->write("</ul>");
- }
}
/**

0 comments on commit ef82c37

Please sign in to comment.