Clean code

This commit is contained in:
Laurent Destailleur 2017-09-04 13:17:18 +02:00
parent c15454e62b
commit 9304df21a0

View File

@ -79,18 +79,18 @@ abstract class ActionsContactCardCommon
*/
function getObject($id)
{
$ret = $this->getInstanceDao();
/*$ret = $this->getInstanceDao();
if (is_object($this->object) && method_exists($this->object,'fetch'))
{
if (! empty($id)) $this->object->fetch($id);
}
else
{
{*/
$object = new Contact($this->db);
if (! empty($id)) $object->fetch($id);
$this->object = $object;
}
//}
}
/**