mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 18:32:32 +01:00
Fix PhanNonClassMethodCall with extra test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user