Fix warning

This commit is contained in:
Laurent Destailleur 2020-12-16 00:28:57 +01:00
parent a5b86f74ce
commit 5fe8c599d2
2 changed files with 3 additions and 2 deletions

View File

@ -598,6 +598,7 @@ class Propal extends CommonObject
$localtaxes_type = getLocalTaxesFromRate($txtva, 0, $this->thirdparty, $mysoc);
// Clean vat code
$reg = array();
$vat_src_code = '';
if (preg_match('/\((.*)\)/', $txtva, $reg))
{

View File

@ -593,8 +593,8 @@ class SupplierProposal extends CommonObject
// Mise en option de la ligne
if (empty($qty) && empty($special_code)) $this->line->special_code = 3;
if (is_array($array_option) && count($array_option) > 0) {
$this->line->array_options = $array_option;
if (is_array($array_options) && count($array_options) > 0) {
$this->line->array_options = $array_options;
}
$result = $this->line->insert();