Skip to content

Commit

Permalink
Debug v21
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 21, 2024
1 parent 7b2d0bc commit 687e71d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions htdocs/adherents/subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@

// Public
$linkofpubliclist = DOL_MAIN_URL_ROOT.'/public/members/public_list.php'.((isModEnabled('multicompany')) ? '?entity='.$conf->entity : '');
print '<tr><td>'.$form->textwithpicto($langs->trans("PublicFile"), $langs->trans("Public", getDolGlobalString('MAIN_INFO_SOCIETE_NOM'), $linkofpubliclist), 1, 'help', '', 0, 3, 'publicfile').'</td><td class="valeur">'.yn($object->public).'</td></tr>';
print '<tr><td>'.$form->textwithpicto($langs->trans("MembershipPublic"), $langs->trans("Public", getDolGlobalString('MAIN_INFO_SOCIETE_NOM'), $linkofpubliclist), 1, 'help', '', 0, 3, 'publicfile').'</td><td class="valeur">'.yn($object->public).'</td></tr>';

// Other attributes
$cols = 2;
Expand All @@ -617,7 +617,7 @@
// Third party Dolibarr
if (isModEnabled('societe')) {
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print '<table class="nobordernopadding centpercent"><tr><td>';
print $langs->trans("LinkedToDolibarrThirdParty");
print '</td>';
if ($action != 'editthirdparty' && $user->hasRight('adherent', 'creer')) {
Expand All @@ -638,9 +638,9 @@
print '<td class="left"><input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'"></td>';
print '</tr></table></form>';
} else {
if ($object->fk_soc) {
if ($object->socid > O) {

Check failure on line 641 in htdocs/adherents/subscription.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

subscription.php: PhanUndeclaredConstant: Reference to undeclared constant \O. This will cause a thrown Error in php 8.0+.

Check failure on line 641 in htdocs/adherents/subscription.php

View workflow job for this annotation

GitHub Actions / phpstan / php-stan (8.2)

Constant O not found.
$company = new Societe($db);
$result = $company->fetch($object->fk_soc);
$result = $company->fetch($object->socid);
print $company->getNomUrl(1);

// Show link to invoices
Expand All @@ -659,7 +659,7 @@

// Login Dolibarr - Link to user
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print '<table class="nobordernopadding centpercent"><tr><td>';
print $langs->trans("LinkedToDolibarrUser");
print '</td>';
if ($action != 'editlogin' && $user->hasRight('adherent', 'creer')) {
Expand Down

0 comments on commit 687e71d

Please sign in to comment.