mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-26 10:43:22 +01:00
fix phpstan is falsy (#30016)
This commit is contained in:
@@ -3755,9 +3755,9 @@ class Commande extends CommonOrder
|
||||
$datas['RefCustomer'] = '<br><b>'.$langs->trans('RefCustomer').':</b> '.(empty($this->ref_customer) ? (empty($this->ref_client) ? '' : $this->ref_client) : $this->ref_customer);
|
||||
if (!$nofetch) {
|
||||
$langs->load('project');
|
||||
if (empty($this->project)) {
|
||||
if (is_null($this->project) || (is_object($this->project) && $this->project->isEmpty())) {
|
||||
$res = $this->fetch_project();
|
||||
if ($res > 0 && !empty($this->project) && $this->project instanceof Project) {
|
||||
if ($res > 0 && $this->project instanceof Project) {
|
||||
$datas['project'] = '<br><b>'.$langs->trans('Project').':</b> '.$this->project->getNomUrl(1, '', 0, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user