From e872c40cc7a94e978a02fa1fd9df6995a52d35c9 Mon Sep 17 00:00:00 2001
From: Florian HENRY <florian.henry@open-concept.pro>
Date: Sun, 18 Jan 2015 16:44:53 +0100
Subject: [PATCH] fix class actioncomm for travis and feature userassigned

---
 htdocs/comm/action/class/actioncomm.class.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php
index b58123578dd..31cad75cffd 100644
--- a/htdocs/comm/action/class/actioncomm.class.php
+++ b/htdocs/comm/action/class/actioncomm.class.php
@@ -144,13 +144,12 @@ class ActionComm extends CommonObject
         	$this->userassigned=array();
         	$this->userassigned[$tmpid]=array('id'=>$tmpid);
         }
-
         $userownerid=$this->userownerid;
         $userdoneid=$this->userdoneid;
 
         // Be sure assigned user array is not empty.
-        if (count($this->userassigned) == 0) $this->userassigned = array('id'=>$userownerid);
-
+        if (count($this->userassigned) == 0) $this->userassigned[] = array('id'=>$userownerid);
+        
         if (! $this->type_id || ! $this->type_code)
         {
         	$key=empty($this->type_id)?$this->type_code:$this->type_id;
-- 
GitLab