diff --git a/include/class.ticket.php b/include/class.ticket.php
index 7bfcdc7a662c7227878da332c9c6659e1122403a..fb6e5065b00c44055152f2a7bde274990ec51c90 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1752,11 +1752,19 @@ class Ticket {
     function logNote($title, $note, $poster='SYSTEM', $alert=true) {
 
         $errors = array();
+        //Unless specified otherwise, assume HTML
+        if ($note && is_string($note))
+            $note = new HtmlThreadBody($note);
+
         return $this->postNote(
-                array('title' => $title, 'note' => $note),
+                array(
+                    'title' => $title,
+                    'note' => $note,
+                ),
                 $errors,
                 $poster,
-                $alert);
+                $alert
+        );
     }
 
     function postNote($vars, &$errors, $poster, $alert=true) {