mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fixes:1220515 Database error when displaying questionnaire
This commit is contained in:
1 parent
b43c6500bf
commit
60df5f2e75
1 file changed
+3
@@ -4689,6 +4689,8 @@
|
||||
|
||||
foreach ($updatedValues as $key=>$value)
|
||||
{
|
||||
if (!empty($key)) //queXS Addition
|
||||
{
|
||||
$val = (is_null($value) ? NULL : $value['value']);
|
||||
$type = (is_null($value) ? NULL : $value['type']);
|
||||
|
||||
@@ -4725,6 +4727,7 @@
|
||||
{
|
||||
$setter[] = db_quote_id($key) . "=" . db_quoteall($val,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
$query .= implode(', ', $setter);
|
||||
$query .= " WHERE ID=";
|
||||
|
||||
Reference in new issue
Block a user