fix undefined variable
This commit is contained in:
parent
6c2d520e21
commit
758bb20750
@ -828,7 +828,8 @@ class Product extends CommonObject
|
||||
$error = 0;
|
||||
|
||||
// Check parameters
|
||||
if (!$this->label) { $this->label = 'MISSING LABEL';
|
||||
if (!$this->label) {
|
||||
$this->label = 'MISSING LABEL';
|
||||
}
|
||||
|
||||
// Clean parameters
|
||||
@ -919,6 +920,9 @@ class Product extends CommonObject
|
||||
// If error, this->errors[] is filled
|
||||
if ($action != 'add') {
|
||||
$result = $this->verify(); // We don't check when update called during a create because verify was already done
|
||||
} else {
|
||||
// we can continue
|
||||
$result = 0;
|
||||
}
|
||||
|
||||
if ($result >= 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user