Added ability to cope with up to 100 options in quantification selections
This commit is contained in:
parent
aaee1758c3
commit
09172a24e6
2
db.php
2
db.php
@ -117,7 +117,7 @@ $stmt = $pdo->prepare("
|
|||||||
$value = null;
|
$value = null;
|
||||||
|
|
||||||
// Handle numeric between -3 and +3
|
// Handle numeric between -3 and +3
|
||||||
if (is_numeric($val) && $val >= -3 && $val <= 3) {
|
if (is_numeric($val) && $val >= -3 && $val <= 100) {
|
||||||
$value = (int) $val;
|
$value = (int) $val;
|
||||||
} else {
|
} else {
|
||||||
$text = substr($val, 0, 255); // enforce VARCHAR(255) limit
|
$text = substr($val, 0, 255); // enforce VARCHAR(255) limit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user