fix phpstan is falsy (#30016)
This commit is contained in:
parent
567e6e7c9c
commit
93e111a615
2 changed files with 6 additions and 6 deletions
|
|
@ -3667,14 +3667,14 @@ class Propal extends CommonObject
|
|||
}
|
||||
$datas['customer'] = '<br><b>'.$langs->trans('Customer').':</b> '.$this->thirdparty->getNomUrl(1, '', 0, 1);
|
||||
}
|
||||
if (!empty($this->ref_client)) {
|
||||
$datas['refcustomer'] = '<br><b>'.$langs->trans('RefCustomer').':</b> '.$this->ref_client;
|
||||
if (!empty($this->ref_customer)) {
|
||||
$datas['refcustomer'] = '<br><b>'.$langs->trans('RefCustomer').':</b> '.$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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue