Completed
Push — master ( 78fac9...861463 )
by Laurent
01:54
created
card.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 $extralabels = $extrafields->fetch_name_optionals_label($object->table_element);
112 112
 
113 113
 // Load object
114
-include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php';  // Must be include, not include_once  // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
114
+include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once  // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
115 115
 
116 116
 // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array
117 117
 $hookmanager->initHooks(array('bbcvols'));
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
 $parameters = array();
138 138
 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object,
139
-    $action);    // Note that $action and $object may have been modified by some hooks
139
+    $action); // Note that $action and $object may have been modified by some hooks
140 140
 if ($reshook < 0) {
141 141
     setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
142 142
 }
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
     print '<div class="tabsAction">' . "\n";
475 475
     $parameters = array();
476 476
     $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object,
477
-        $action);    // Note that $action and $object may have been modified by hook
477
+        $action); // Note that $action and $object may have been modified by hook
478 478
     if ($reshook < 0) {
479 479
         setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
480 480
     }
@@ -487,13 +487,13 @@  discard block
 block discarded – undo
487 487
         print '<div class="inline-block divButAction"><a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&amp;action=delete">' . $langs->trans('Delete') . '</a></div>' . "\n";
488 488
     }
489 489
 
490
-    if($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()){
491
-        print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id.'">' . $langs->trans("Facturer") . '</a></div>' . "\n";
490
+    if ($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()) {
491
+        print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id . '">' . $langs->trans("Facturer") . '</a></div>' . "\n";
492 492
     }
493 493
 
494 494
     print '</div>' . "\n";
495 495
 
496
-    if($user->rights->flightlog->vol->financial){
496
+    if ($user->rights->flightlog->vol->financial) {
497 497
         print '<div class="fichecenter"><div class="fichehalfleft">';
498 498
         $form->showLinkedObjectBlock($object);
499 499
         print '</div></div>';
Please login to merge, or discard this patch.