Fix JSON HTML content sending, according to new tests
authorChristian Weiske <cweiske@cweiske.de>
Fri, 31 Mar 2017 22:33:51 +0000 (00:33 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 31 Mar 2017 22:33:51 +0000 (00:33 +0200)
src/shpub/Request.php

index 3614d5d..3d7221d 100644 (file)
@@ -225,7 +225,7 @@ class Request
     {
         if ($isHtml) {
             $this->addProperty(
     {
         if ($isHtml) {
             $this->addProperty(
-                'content', ['html' => $text]
+                'content', [['html' => $text]]
             );
         } else {
             $this->addProperty('content', $text);
             );
         } else {
             $this->addProperty('content', $text);