From 7fe53c4dcf62e43b3b709f4a8a5827c5cdd5cd89 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 8 Jul 2012 23:26:28 +0200 Subject: [PATCH] Fix: object already defined in constructor --- htdocs/comm/action/class/actioncomm.class.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 481845aec9e..1d9612271cf 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -294,25 +294,19 @@ class ActionComm extends CommonObject $this->note = $obj->note; $this->percentage = $obj->percentage; - $this->author = (object) array(); $this->author->id = $obj->fk_user_author; $this->author->firstname = $obj->firstname; $this->author->lastname = $obj->lastname; - $this->usermod = (object) array(); $this->usermod->id = $obj->fk_user_mod; - $this->usertodo = (object) array(); $this->usertodo->id = $obj->fk_user_action; - $this->userdone = (object) array(); $this->userdone->id = $obj->fk_user_done; $this->priority = $obj->priority; $this->fulldayevent = $obj->fulldayevent; $this->location = $obj->location; $this->socid = $obj->fk_soc; // To have fetch_thirdparty method working - $this->societe = (object) array(); $this->societe->id = $obj->fk_soc; - $this->contact = (object) array(); $this->contact->id = $obj->fk_contact; $this->fk_project = $obj->fk_project;