mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix warning
This commit is contained in:
parent
a5b86f74ce
commit
5fe8c599d2
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user