Ajoute renvoie de 0 (ok) si le module de verif n'est pas définit pour
compatibilité
This commit is contained in:
parent
120902a2f9
commit
3076bf7960
@ -778,7 +778,10 @@ class Societe {
|
|||||||
$this->rib();
|
$this->rib();
|
||||||
return $this->bank_account->verif();
|
return $this->bank_account->verif();
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Renvoie 0 si ok
|
||||||
|
*
|
||||||
|
*/
|
||||||
function check_codeclient()
|
function check_codeclient()
|
||||||
{
|
{
|
||||||
if (defined('CODECLIENT_ADDON') && strlen(CODECLIENT_ADDON) > 0)
|
if (defined('CODECLIENT_ADDON') && strlen(CODECLIENT_ADDON) > 0)
|
||||||
@ -792,7 +795,10 @@ class Societe {
|
|||||||
|
|
||||||
return $mod->verif($this->db, $this->code_client);
|
return $mod->verif($this->db, $this->code_client);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user