diff --git a/include/class.ticket.php b/include/class.ticket.php
index 06d417313b8b8a45dac075c7d0d41cde8970cd86..6895c5806d3ebbaef76184d54e18fe488dc275ce 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -2483,7 +2483,7 @@ class Ticket {
             $__form = null;
             if ($vars['topicId']) {
                 if (($__topic=Topic::lookup($vars['topicId']))
-                    && $__form = $__topic->getForm()
+                    && ($__form = $__topic->getForm())
                 ) {
                     $__form = $__form->instanciate();
                     $__form->setSource($vars);