Fix PhanNonClassMethodCall with extra test

This commit is contained in:
MDW
2024-03-23 20:38:20 +01:00
parent 5c5ad3260c
commit 6f0b454779

View File

@@ -3764,7 +3764,7 @@ class Commande extends CommonOrder
$langs->load('project');
if (empty($this->project)) {
$res = $this->fetch_project();
if ($res > 0) {
if ($res > 0 && $this->project instanceof Project) {
$datas['project'] = '<br><b>'.$langs->trans('Project').':</b> '.$this->project->getNomUrl(1, '', 0, 1);
}
}