@@ -585,19 +585,23 @@ |
||
585 | 585 | $duration = $obj->duree; |
586 | 586 | $event['location'] = ($obj->socname ? $obj->socname : ""); |
587 | 587 | $event['summary'] = $obj->ref." - ". $obj->description; |
588 | - if ($obj->ref_client) |
|
589 | - $event['summary'].= " (".$obj->ref_client.")"; |
|
588 | + if ($obj->ref_client) { |
|
589 | + $event['summary'].= " (".$obj->ref_client.")"; |
|
590 | + } |
|
590 | 591 | |
591 | 592 | $event['desc'] = $obj->description; |
592 | 593 | |
593 | - if ($obj->ref_project) |
|
594 | - $event['desc'] .= " - ".$obj->ref_project; |
|
594 | + if ($obj->ref_project) { |
|
595 | + $event['desc'] .= " - ".$obj->ref_project; |
|
596 | + } |
|
595 | 597 | |
596 | - if ($obj->ref_contract) |
|
597 | - $event['desc'] .= " - ".$obj->ref_contract; |
|
598 | + if ($obj->ref_contract) { |
|
599 | + $event['desc'] .= " - ".$obj->ref_contract; |
|
600 | + } |
|
598 | 601 | |
599 | - if ($obj->note_public) |
|
600 | - $event['desc'].= " - ".$obj->note_public; |
|
602 | + if ($obj->note_public) { |
|
603 | + $event['desc'].= " - ".$obj->note_public; |
|
604 | + } |
|
601 | 605 | |
602 | 606 | $event['startdate'] = $datestart; |
603 | 607 | $event['enddate'] = ''; // $dateend; // Not required with type 'journal' |