// Fixed warning on WS #PSCFV-3689
This commit is contained in:
1 parent
60c50eaee7
commit
c786292e1d
1 file changed
+2
-2
@@ -270,7 +270,7 @@ abstract class ObjectModelCore
|
|||||||
$fields = array_merge($fields, $this->getFieldsShop());
|
$fields = array_merge($fields, $this->getFieldsShop());
|
||||||
|
|
||||||
// Ensure that we get something to insert
|
// Ensure that we get something to insert
|
||||||
if (!$fields && $this->id)
|
if (!$fields && isset($this->id) && Validate::isUnsignedId($this->id))
|
||||||
$fields[$this->def['primary']] = $this->id;
|
$fields[$this->def['primary']] = $this->id;
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
@@ -286,7 +286,7 @@ abstract class ObjectModelCore
|
|||||||
public function getFieldsShop()
|
public function getFieldsShop()
|
||||||
{
|
{
|
||||||
$fields = $this->formatFields(self::FORMAT_SHOP);
|
$fields = $this->formatFields(self::FORMAT_SHOP);
|
||||||
if (!$fields && $this->id)
|
if (!$fields && isset($this->id) && Validate::isUnsignedId($this->id))
|
||||||
$fields[$this->def['primary']] = $this->id;
|
$fields[$this->def['primary']] = $this->id;
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user