fix phpstan is falsy (#30016)

This commit is contained in:
Frédéric FRANCE
2024-06-15 16:03:53 +02:00
committed by GitHub
parent 567e6e7c9c
commit 93e111a615
2 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
}