Fix avoid error message
This commit is contained in:
parent
9308fab7ca
commit
2acbdc2c80
@ -887,7 +887,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify')) {
|
|||||||
$sql .= "null"; // For vat, we want/accept code = ''
|
$sql .= "null"; // For vat, we want/accept code = ''
|
||||||
} elseif ($keycode == 'content') {
|
} elseif ($keycode == 'content') {
|
||||||
$sql .= "'".$db->escape(GETPOST($keycode, 'restricthtml'))."'";
|
$sql .= "'".$db->escape(GETPOST($keycode, 'restricthtml'))."'";
|
||||||
} elseif (in_array($keycode, array('joinfile', 'private', 'pos', 'position', 'scale'))) {
|
} elseif (in_array($keycode, array('joinfile', 'private', 'pos', 'position', 'scale', 'use_default'))) {
|
||||||
$sql .= (int) GETPOST($keycode, 'int');
|
$sql .= (int) GETPOST($keycode, 'int');
|
||||||
} else {
|
} else {
|
||||||
$sql .= "'".$db->escape(GETPOST($keycode, 'nohtml'))."'";
|
$sql .= "'".$db->escape(GETPOST($keycode, 'nohtml'))."'";
|
||||||
@ -956,7 +956,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify')) {
|
|||||||
$sql .= "null"; // For vat, we want/accept code = ''
|
$sql .= "null"; // For vat, we want/accept code = ''
|
||||||
} elseif ($keycode == 'content') {
|
} elseif ($keycode == 'content') {
|
||||||
$sql .= "'".$db->escape(GETPOST($keycode, 'restricthtml'))."'";
|
$sql .= "'".$db->escape(GETPOST($keycode, 'restricthtml'))."'";
|
||||||
} elseif (in_array($keycode, array('joinfile', 'private', 'pos', 'position', 'scale'))) {
|
} elseif (in_array($keycode, array('joinfile', 'private', 'pos', 'position', 'scale', 'use_default'))) {
|
||||||
$sql .= (int) GETPOST($keycode, 'int');
|
$sql .= (int) GETPOST($keycode, 'int');
|
||||||
} else {
|
} else {
|
||||||
$sql .= "'".$db->escape(GETPOST($keycode, 'nohtml'))."'";
|
$sql .= "'".$db->escape(GETPOST($keycode, 'nohtml'))."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user