diff --git a/classes/table/workflow_table.php b/classes/table/workflow_table.php
index fd7c6bce5090d008d7138522587adbe64366bedb..bbaa98d06d568141a997f69bc00b9c7911c836a7 100644
--- a/classes/table/workflow_table.php
+++ b/classes/table/workflow_table.php
@@ -88,10 +88,11 @@ abstract class workflow_table extends \table_sql {
         if ($triggers) {
             $triggerstring = $triggers[0]->instancename;
             for ($i = 1; $i < count($triggers); $i++) {
-                $triggerstring .= ' ';
+                $triggerstring .= ', ';
                 $triggerstring .= $triggers[$i]->instancename;
             }
         }
+        return $triggerstring;
     }
 
     /**