correction warning php Undefined property: stdClass:: in /space/www/v16/htdocs/societe/index.php on line 181 lorsque le module fournisseur n'est pas actif en se rendant sur le module Tiers
This commit is contained in:
parent
21353e54c2
commit
7177bc0926
@ -178,12 +178,10 @@ if (!empty($conf->use_javascript_ajax) && ((round($third['prospect']) ? 1 : 0) +
|
|||||||
$statstring .= "</tr>";
|
$statstring .= "</tr>";
|
||||||
}
|
}
|
||||||
$statstring2 = '';
|
$statstring2 = '';
|
||||||
if (isModEnabled('fournisseur')) {
|
if (((isModEnabled('fournisseur') && $user->rights->fournisseur->facture->lire && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled('supplier_order') && $user->rights->supplier_order->lire) || (isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) && empty($conf->global->SOCIETE_DISABLE_SUPPLIERS_STATS)) {
|
||||||
if (((isModEnabled('societe') && $user->rights->fournisseur->facture->lire && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled('supplier_order') && $user->rights->supplier_order->lire) || (isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) && empty($conf->global->SOCIETE_DISABLE_SUPPLIERS_STATS)) {
|
$statstring2 = "<tr>";
|
||||||
$statstring2 = "<tr>";
|
$statstring2 .= '<td><a href="'.DOL_URL_ROOT.'/societe/list.php?type=f">'.$langs->trans("Suppliers").'</a></td><td class="right">'.round($third['supplier']).'</td>';
|
||||||
$statstring2 .= '<td><a href="'.DOL_URL_ROOT.'/societe/list.php?type=f">'.$langs->trans("Suppliers").'</a></td><td class="right">'.round($third['supplier']).'</td>';
|
$statstring2 .= "</tr>";
|
||||||
$statstring2 .= "</tr>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$thirdpartygraph .= $statstring;
|
$thirdpartygraph .= $statstring;
|
||||||
$thirdpartygraph .= $statstring2;
|
$thirdpartygraph .= $statstring2;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user